Skip to content

Commit c0f17b5

Browse files
authored
Merge pull request #1411 from haoxiuwen/keywords
Modify REST APIs
2 parents d0e8242 + a3a2245 commit c0f17b5

File tree

2 files changed

+31
-17
lines changed

2 files changed

+31
-17
lines changed

docs/product/limitationapi.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,21 @@ API 限流周期按照 UTC 时间计算,即当日的 00:00:00 至次日的 00:
4242
| * 撤回单条消息 | POST | /{org_name}/{app_name}/messages/recall | 100 次/秒/App Key | 100 次/秒 |
4343
| * 批量撤回消息 | POST | /{org_name}/{app_name}/messages/batch_recall | 100 次/秒/App Key | 100 次/秒 |
4444
| 服务端单向删除会话 | DELETE | /{org_name}/{app_name}/users/{userName}/user_channel | 5 次/分钟/单用户 ID,100 次/秒/App Key | 100 次/秒 |
45+
| 添加 Reaction | POST | /{org_name}/{app_name}/reaction/user/{userId} | 100 次/秒/App Key | 50 次/秒 |
46+
| 根据消息 ID 获取 Reaction | GET | /{org_name}/{app_name}/reaction/user/{userId} | 100 次/秒/App Key | 25 次/秒 |
47+
| 删除 Reaction | DELETE | /{org_name}/{app_name}/reaction/user/{userId} | 100 次/秒/App Key | 50 次/秒 |
48+
| 根据消息 ID 和表情 ID 获取 Reaction 信息 | GET | /{org_name}/{app_name}/reaction/user/{userId}/detail | 100 次/秒/App Key | 25 次/秒 |
4549
| 修改消息 | PUT | /{org_name}/{app_name}/messages/rewrite/{msg_id} | 100 次/秒/App Key | 50 条/秒 |
46-
| 翻译消息内容 | POST | /{org_name}/{app_name}/translate | 100 次/秒/App Key | 50 /秒 |
47-
| 获取翻译语言列表 | GET | /{org_name}/{app_name}/translate/support/language | 100 次/秒/App Key | 50 /秒 |
48-
| 检测文本的源语言 | POST | /{org_name}/{app_name}/translate/detect | 100 次/秒/App Key | 50 /秒 |
50+
| 翻译消息内容 | POST | /{org_name}/{app_name}/translate | 100 次/秒/App Key | 50 /秒 |
51+
| 获取翻译语言列表 | GET | /{org_name}/{app_name}/translate/support/language | 100 次/秒/App Key | 50 /秒 |
52+
| 检测文本的源语言 | POST | /{org_name}/{app_name}/translate/detect | 100 次/秒/App Key | 50 /秒 |
4953
| 根据消息 ID 单向删除单聊漫游消息 | DELETE | /{org_name}/{app_name}/rest/message/roaming/chat/user/{userId}?userId={userId}&msgIdList={msgIdList} | 100 次/秒/App Key | 50 次/秒 |
5054
| 根据消息 ID 单向删除群聊漫游消息 | DELETE | /{org_name}/{app_name}/rest/message/roaming/group/user/{userId}?groupId={groupId}&msgIdList={msgIdList} | 100 次/秒/App Key | |
5155
| 单向清空指定用户的漫游消息 | POST | /{org_name}/{app_name}/rest/message/roaming/user/{userId}/delete/all | 100 次/秒/App Key | 100 次/秒 |
5256
| 单向清空单聊会话某个时间点及之前的漫游消息 | POST | /{org_name}/{app_name}/rest/message/roaming/chat/user/{userId}/time?userId={userId}&delTime={delTime} | 100 次/秒/App Key | 50 次/秒 |
5357
| 单向清空群组或聊天室会话某个时间点及之前的漫游消息 | POST | /{org_name}/{app_name}/rest/message/roaming/group/user/{userId}/time?groupId={groupId}&delTime={delTime} | 100 次/秒/App Key | 50 次/秒 |
5458
| 导入单聊消息 | POST | /{org_name}/{app_name}/messages/users/import | 100 条/秒/App Key | 100 次/秒 |
5559

56-
### 消息表情回复 Reaction
57-
58-
| RESTful API 接口 |方法 | 接口 URL| 接口最高调用频率(默认值) | 单个叠加包大小|
59-
| :-------- | :----- | :---------------- | :--------------------- | :--------------------- |
60-
| 添加 Reaction | POST | /{org_name}/{app_name}/reaction/user/{userId} | 100 次/秒/App Key | 50 次/秒 |
61-
| 根据消息 ID 获取 Reaction | GET | /{org_name}/{app_name}/reaction/user/{userId} | 100 次/秒/App Key | 25 次/秒 |
62-
| 删除 Reaction | DELETE | /{org_name}/{app_name}/reaction/user/{userId} | 100 次/秒/App Key | 50 次/秒 |
63-
| 根据消息 ID 和表情 ID 获取 Reaction 信息 | GET | /{org_name}/{app_name}/reaction/user/{userId}/detail | 100 次/秒/App Key | 25 次/秒 |
64-
6560
## 群组
6661

6762
### 群组管理
@@ -263,12 +258,15 @@ API 限流周期按照 UTC 时间计算,即当日的 00:00:00 至次日的 00:
263258
| RESTful API 接口 |方法 | 接口 URL| 接口最高调用频率(默认值) | 单个叠加包大小|
264259
| :-------- | :----- | :---------------- | :--------------------- | :--------------------- |
265260
| 添加好友 | POST | /{org_name}/{app_name}/users/{owner_username}/contacts/users/{friend_username} | 100 次/秒/App Key | 100 次/秒 |
266-
| 移除好友 | DELETE | /{org_name}/{app_name}/users/{owner_username}/contacts/users/{friend_username} | 100 次/秒/App Key | 100 次/秒 |
267-
| 设置好友备注 | PUT | /{org_name}/{app_name}/user/{owner_username}/contacts/users/{friend_username} | 100 次/秒/App Key |
261+
| 校验好友 | POST | /{org_name}/{app_name}/contacts/check | 100 次/秒/App Key | 50 次/秒 |
262+
| 删除单个好友 | DELETE | /{org_name}/{app_name}/users/{owner_username}/contacts/users/{friend_username} | 100 次/秒/App Key | 100 次/秒 |
263+
| 删除所有好友 | DELETE | /{org_name}/{app_name}/contacts/users/{username} | 100 次/秒/App Key | 50 次/秒 |
264+
| 设置好友备注 | PUT | /{org_name}/{app_name}/user/{owner_username}/contacts/users/{friend_username} | 100 次/秒/App Key | |
268265
| 分页获取好友列表 | GET | /{org_name}/{app_name}/user/{username}/contacts?limit={N}&cursor={cursor}&needReturnRemark={true/false} | 100 次/秒/App Key | 50 次/秒|
269266
| 一次性获取好友列表 | GET | /{org_name}/{app_name}/users/{owner_username}/contacts/users | 100 次/秒/App Key | 100 次/秒 |
270-
| * 导入好友列表 | POST | /{org_name}/{app_name}/users/{username}/contacts/import | 100 次/秒/App Key | |
267+
| * 导入好友列表 | POST | /{org_name}/{app_name}/users/{username}/contacts/import | 100 次/秒/App Key | |
271268
| 获取黑名单列表 | GET | /{org_name}/{app_name}/users/{owner_username}/blocks/users | 50 次/秒/App Key | 100 次/秒 |
269+
| 校验黑名单 | POST | /{org_name}/{app_name}/blocks/check | 100 次/秒/App Key | 50 次/秒 |
272270
| 添加用户至黑名单 | POST | /{org_name}/{app_name}/users/{owner_username}/blocks/users | 50 次/秒/App Key | 100 次/秒 |
273271
| 从黑名单移除用户 | DELETE | /{org_name}/{app_name}/users/{owner_username}/blocks/users/{blocked_username} | 50 次/秒/App Key | 100 次/秒 |
274272

@@ -286,6 +284,21 @@ API 限流周期按照 UTC 时间计算,即当日的 00:00:00 至次日的 00:
286284
| 删除离线推送模板 | DELETE | /{org_name}/{app_name}/notification/template/{name} | 10 次/秒/App Key | |
287285
| 接收方配置模板名称 | PUT | /{org_name}/{app_name}/users/{userId}/notification/template | 100 次/秒/App Key。 | |
288286

287+
## 关键词名单
288+
289+
| RESTful API 接口 |方法 | 接口 URL| 接口最高调用频率(默认值) | 单个叠加包大小|
290+
| :-------- | :----- | :---------------- | :--------------------- | :--------------------- |
291+
| 创建关键词名单 | POST | /{org_name}/{app_name}/moderation/text/list | 100 次/秒/App Key | 50 次/秒 |
292+
| 修改关键词名单 | PUT | /{org_name}/{app_name}/moderation/text/list/{list_id} | 100 次/秒/App Key | 50 次/秒 |
293+
| 查询关键词名单列表 | POST | /{org_name}/{app_name}/moderation/text/list/search | 100 次/秒/App Key | 50 次/秒 |
294+
| 删除关键词名单 | DELETE | /{org_name}/{app_name}/moderation/text/list/{list_id} | 100 次/秒/App Key | 50 次/秒 |
295+
| 添加关键词 | POST | /{org_name}/{app_name}/moderation/text/list/{list_id}/word/batch | 100 次/秒/App Key | 50 次/秒 |
296+
| 修改关键词 | PUT | /{org_name}/{app_name}/moderation/text/list/{list_id}/word | 100 次/秒/App Key | 50 次/秒 |
297+
| 查询关键词 | POST | /{org_name}/{app_name}/moderation/text/list/{list_id}/word | 100 次/秒/App Key | 50 次/秒 |
298+
| 删除单个关键词 | DELETE | /{org_name}/{app_name}/moderation/text/list/(list_id)/word?wordId={word_id} | 100 次/秒/App Key | 50 次/秒 |
299+
| 批量删除关键词 | DELETE | /{org_name}/{app_name}/moderation/text/list/(list_id)/word/batch | 100 次/秒/App Key | 50 次/秒 |
300+
301+
289302
## 发送后回调
290303

291304
| RESTful API 接口 |方法 | 接口 URL| 接口最高调用频率(默认值) | 单个叠加包大小|

docs/product/moderation/moderation_billing_domestic.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
以下为举例说明:
2929

3030
如月结算时,图片审核 50 万张,调用时均使用了涉政、色情、OCR 文字通用违规 3 个模型,则总消耗量为:涉政 50 万张,色情 50 万张,OCR 文字通用违规 50 万张:
31-
1、消耗用量费用 =50*15(涉政单价)+50*15(色情单价)+50*22.5(OCR 单价)= 2625 元
32-
2、用量费用 2625 元高于基础服务费用 288 元/月,则当月应付费用为 2625 元;
31+
32+
1. 消耗用量费用 = 50 x 15(涉政单价)+ 50 x 15(色情单价)+ 50 x 22.5(OCR 单价)= 2625 元
33+
2. 用量费用 2625 元高于基础服务费用 288 元/月,则当月应付费用为 2625 元。
3334

3435
:::tip
3536
假设用量费用为 100 元低于基础服务费用 288 元/月,则当月应付费用为 288 元。

0 commit comments

Comments
 (0)