-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chathub接口的建议 #14
Labels
enhancement
New feature or request
Comments
登录签名我是用的jwt,里面我已经埋了expireat。我打算后面再做一个续签token,跟登录token一起下发。这样可以用续签token来自动续签,不需要重新登录。这一块我尽量模仿OAuth规范。 |
|
user token 被植入了session,客户端本地存储麻烦,考虑服务端根据session自动续约。 以下说明SDK续约方法 获取sdk-token
response
refresh
response
|
chatuser search 接口
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
重要*****
GET /login 接口,需要返回登陆状态,因为我前端会周期性的调用这个接口,如果不在登陆状态,session超时了,我就让他重新登陆,没这个接口我就只能等到api报错才知道。
------------------------------联系人---------------------------------
GET contacts 接口
***** 接口暴露 sex / province / city / slogn / 标签(用数组输出)/ 最后活跃时间 / 手机号 / 销售额
增加?search参数,允许search nickname sex province city 标签
增加对最后活跃时间的排序 ?sortColumn=** & sortOrder=desc/asc 也可以做成通用,每个字段都能sort ;)
PATCH contacts/:contactId
修改contact的备注
-----------------------------联系人标签----------------------------------
POST contacts/:contactId/labels 对contact增加标签
DELETE contacts/:contactId/labels/:labelId 删除contact的标签
-----------------------------群----------------------------------
GET groups 接口修改
增加字段类
增加群最后活跃时间 / 近24小时消息数 / botId / 管理员联系人object / 机器人在本群昵称 / 群公告
筛选条件类
增加 ?botId=....
搜索类
?search=keyword 搜索群名称 群备注 按群成员名字
PATCH /group/:groupId 可以修改group的备注
GET /groups/:groupId 可查看群详细信息
群二维码 / 群名称 / 群公告 / 群近24小时云词 / 群总云词 / 群总人数
-----------------------------群人数----------------------------------
GET /groups/:groupId/contacts 查看群下的人的列表,复用contacts接口
The text was updated successfully, but these errors were encountered: