@tencentcloud/sdk-mcp 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +14 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +1 -1
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +9 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +85 -85
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +9 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +9 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +62 -62
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +11 -11
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +4 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +130 -130
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +34 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +18 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +8 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +8 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +4 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +10 -10
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +34 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +12 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +14 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +12 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +33 -33
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +18 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +60 -60
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +15 -15
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +5 -5
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +6 -6
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +18 -18
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +12 -12
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +10 -10
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +20 -20
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +27 -27
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +2 -2
- package/mcp-server-prompt.png +0 -0
- package/mcp.json +9 -9
- package/package.json +1 -1
- package/resource/doc/chatuikit/android/client_api_android.md +1377 -0
- package/resource/doc/chatuikit/android/integrate_tuichat_only_android.md +382 -0
- package/resource/doc/chatuikit/android/integrate_tuikit_android.md +612 -0
- package/resource/doc/chatuikit/android/ui_api_android.md +418 -0
- package/resource/doc/chatuikit/faq/freq_qa.md +86 -0
- package/resource/doc/chatuikit/faq/sdk_qa.md +117 -0
- package/resource/doc/chatuikit/faq/vue_qa.md +344 -0
- package/resource/doc/chatuikit/faq/web_qa.md +118 -0
- package/resource/doc/chatuikit/flutter/client_api_Flutter.md +939 -0
- package/resource/doc/chatuikit/flutter/integrate_tuikit_Flutter.md +1432 -0
- package/resource/doc/chatuikit/iOS/client_api_iOS.md +1371 -0
- package/resource/doc/chatuikit/iOS/integrate_tuichat_only_iOS.md +993 -0
- package/resource/doc/chatuikit/iOS/integrate_tuikit_iOS.md +1427 -0
- package/resource/doc/chatuikit/iOS/ui_api_iOS.md +526 -0
- package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +185 -0
- package/resource/doc/chatuikit/react/integrate_tuichat_react.md +212 -0
- package/resource/doc/chatuikit/vue/integrate_tuichat_only_vue.md +149 -0
- package/resource/doc/chatuikit/vue/integrate_tuichat_vue.md +248 -0
- package/server.js +57 -33
- package/server.js.map +1 -1
- package/@tencent/polaris/node_modules/axios/CHANGELOG.md +0 -891
- package/@tencent/polaris/node_modules/axios/LICENSE +0 -19
- package/@tencent/polaris/node_modules/axios/README.md +0 -908
- package/@tencent/polaris/node_modules/axios/SECURITY.md +0 -5
- package/@tencent/polaris/node_modules/axios/UPGRADE_GUIDE.md +0 -168
- package/@tencent/polaris/node_modules/axios/dist/axios.js +0 -2277
- package/@tencent/polaris/node_modules/axios/dist/axios.map +0 -1
- package/@tencent/polaris/node_modules/axios/dist/axios.min.js +0 -4
- package/@tencent/polaris/node_modules/axios/dist/axios.min.map +0 -1
- package/@tencent/polaris/node_modules/axios/index.d.ts +0 -221
- package/@tencent/polaris/node_modules/axios/index.js +0 -1
- package/@tencent/polaris/node_modules/axios/lib/adapters/README.md +0 -37
- package/@tencent/polaris/node_modules/axios/lib/adapters/http.js +0 -388
- package/@tencent/polaris/node_modules/axios/lib/adapters/xhr.js +0 -212
- package/@tencent/polaris/node_modules/axios/lib/axios.js +0 -57
- package/@tencent/polaris/node_modules/axios/lib/cancel/Cancel.js +0 -19
- package/@tencent/polaris/node_modules/axios/lib/cancel/CancelToken.js +0 -119
- package/@tencent/polaris/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/@tencent/polaris/node_modules/axios/lib/core/Axios.js +0 -155
- package/@tencent/polaris/node_modules/axios/lib/core/InterceptorManager.js +0 -54
- package/@tencent/polaris/node_modules/axios/lib/core/README.md +0 -8
- package/@tencent/polaris/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/@tencent/polaris/node_modules/axios/lib/core/createError.js +0 -18
- package/@tencent/polaris/node_modules/axios/lib/core/dispatchRequest.js +0 -87
- package/@tencent/polaris/node_modules/axios/lib/core/enhanceError.js +0 -43
- package/@tencent/polaris/node_modules/axios/lib/core/mergeConfig.js +0 -99
- package/@tencent/polaris/node_modules/axios/lib/core/settle.js +0 -25
- package/@tencent/polaris/node_modules/axios/lib/core/transformData.js +0 -22
- package/@tencent/polaris/node_modules/axios/lib/defaults.js +0 -134
- package/@tencent/polaris/node_modules/axios/lib/env/README.md +0 -3
- package/@tencent/polaris/node_modules/axios/lib/env/data.js +0 -3
- package/@tencent/polaris/node_modules/axios/lib/helpers/README.md +0 -7
- package/@tencent/polaris/node_modules/axios/lib/helpers/bind.js +0 -11
- package/@tencent/polaris/node_modules/axios/lib/helpers/buildURL.js +0 -70
- package/@tencent/polaris/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/@tencent/polaris/node_modules/axios/lib/helpers/cookies.js +0 -53
- package/@tencent/polaris/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- package/@tencent/polaris/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/@tencent/polaris/node_modules/axios/lib/helpers/isAxiosError.js +0 -13
- package/@tencent/polaris/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- package/@tencent/polaris/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/@tencent/polaris/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/@tencent/polaris/node_modules/axios/lib/helpers/spread.js +0 -27
- package/@tencent/polaris/node_modules/axios/lib/helpers/toFormData.js +0 -55
- package/@tencent/polaris/node_modules/axios/lib/helpers/validator.js +0 -82
- package/@tencent/polaris/node_modules/axios/lib/utils.js +0 -349
- package/@tencent/polaris/node_modules/axios/package.json +0 -86
- package/@tencent/polaris/node_modules/axios/tsconfig.json +0 -14
- package/@tencent/polaris/node_modules/axios/tslint.json +0 -6
- package/resource/doc/tuicallkit/vue/api_TUICallObserver.md +0 -926
|
@@ -0,0 +1,1371 @@
|
|
|
1
|
+
> **注意:**
|
|
2
|
+
>
|
|
3
|
+
|
|
4
|
+
> **新老版本 API 请勿混合使用**。
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## 初始化登录接口
|
|
9
|
+
|
|
10
|
+
初始化并成功登录,是正常使用腾讯云 IM 服务的前提。
|
|
11
|
+
<table>
|
|
12
|
+
<tr>
|
|
13
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
14
|
+
|
|
15
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
16
|
+
</tr>
|
|
17
|
+
|
|
18
|
+
<tr>
|
|
19
|
+
<td rowspan="1" colSpan="1" >[initSDK](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a8035eed3a7c9b3b1c229196ac7bc5da6)</td>
|
|
20
|
+
|
|
21
|
+
<td rowspan="1" colSpan="1" >初始化</td>
|
|
22
|
+
</tr>
|
|
23
|
+
|
|
24
|
+
<tr>
|
|
25
|
+
<td rowspan="1" colSpan="1" >[unInitSDK](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a286e5358ec4cd0a8f9c66f4d2d7d4544)</td>
|
|
26
|
+
|
|
27
|
+
<td rowspan="1" colSpan="1" >反初始化</td>
|
|
28
|
+
</tr>
|
|
29
|
+
|
|
30
|
+
<tr>
|
|
31
|
+
<td rowspan="1" colSpan="1" >[addIMSDKListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#ac569656a58908afba491710a8cb3c8d9)</td>
|
|
32
|
+
|
|
33
|
+
<td rowspan="1" colSpan="1" >添加 IM 监听</td>
|
|
34
|
+
</tr>
|
|
35
|
+
|
|
36
|
+
<tr>
|
|
37
|
+
<td rowspan="1" colSpan="1" >[removeIMSDKListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a2e2a7e64bf51888c98636e5974a8aca7)</td>
|
|
38
|
+
|
|
39
|
+
<td rowspan="1" colSpan="1" >移除 IM 监听</td>
|
|
40
|
+
</tr>
|
|
41
|
+
|
|
42
|
+
<tr>
|
|
43
|
+
<td rowspan="1" colSpan="1" >[getVersion](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#ae8281def98e669d701171ede7aa3c176)</td>
|
|
44
|
+
|
|
45
|
+
<td rowspan="1" colSpan="1" >获取版本号</td>
|
|
46
|
+
</tr>
|
|
47
|
+
|
|
48
|
+
<tr>
|
|
49
|
+
<td rowspan="1" colSpan="1" >[getServerTime](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a4adcf2642bcb706cd6cfe7e5c5f85f06)</td>
|
|
50
|
+
|
|
51
|
+
<td rowspan="1" colSpan="1" >获取服务器当前时间</td>
|
|
52
|
+
</tr>
|
|
53
|
+
|
|
54
|
+
<tr>
|
|
55
|
+
<td rowspan="1" colSpan="1" >[login](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a38c42943046acdaf615915c9422af07c)</td>
|
|
56
|
+
|
|
57
|
+
<td rowspan="1" colSpan="1" >登录</td>
|
|
58
|
+
</tr>
|
|
59
|
+
|
|
60
|
+
<tr>
|
|
61
|
+
<td rowspan="1" colSpan="1" >[logout](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a20b495d7f7a231ea33507ca4a79f811f)</td>
|
|
62
|
+
|
|
63
|
+
<td rowspan="1" colSpan="1" >退出登录</td>
|
|
64
|
+
</tr>
|
|
65
|
+
|
|
66
|
+
<tr>
|
|
67
|
+
<td rowspan="1" colSpan="1" >[getLoginUser](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a78ca7f39bca860e46620f8f766508fb0)</td>
|
|
68
|
+
|
|
69
|
+
<td rowspan="1" colSpan="1" >获取登录用户</td>
|
|
70
|
+
</tr>
|
|
71
|
+
|
|
72
|
+
<tr>
|
|
73
|
+
<td rowspan="1" colSpan="1" >[getLoginStatus](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#acfd2f6366780badf80ebf66d95550f89)</td>
|
|
74
|
+
|
|
75
|
+
<td rowspan="1" colSpan="1" >获取登录状态</td>
|
|
76
|
+
</tr>
|
|
77
|
+
</table>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## 简单消息收发接口
|
|
81
|
+
|
|
82
|
+
如果您只需要使用文本和信令(即一段自定义buffer)消息,只需要使用这套简单消息收发接口即可。
|
|
83
|
+
<table>
|
|
84
|
+
<tr>
|
|
85
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
86
|
+
|
|
87
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
88
|
+
</tr>
|
|
89
|
+
|
|
90
|
+
<tr>
|
|
91
|
+
<td rowspan="1" colSpan="1" >[addSimpleMsgListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a149cdf7924aa13746692d18d605def88)</td>
|
|
92
|
+
|
|
93
|
+
<td rowspan="1" colSpan="1" >设置基本消息(文本消息和自定义消息)的事件监听器,请不要同 [addAdvancedMsgListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#acf794752cc6bfa786aea5cd7fabadfab) 混用</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<tr>
|
|
97
|
+
<td rowspan="1" colSpan="1" >[removeSimpleMsgListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#afa3040f676105f3fb78d4835ee3c898b)</td>
|
|
98
|
+
|
|
99
|
+
<td rowspan="1" colSpan="1" >移除基本消息(文本消息和自定义消息)的事件监听器</td>
|
|
100
|
+
</tr>
|
|
101
|
+
|
|
102
|
+
<tr>
|
|
103
|
+
<td rowspan="1" colSpan="1" >[sendC2CTextMessage](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a50d63810093eccc0491d058d0b883618)</td>
|
|
104
|
+
|
|
105
|
+
<td rowspan="1" colSpan="1" >发送单聊(C2C)普通文本消息</td>
|
|
106
|
+
</tr>
|
|
107
|
+
|
|
108
|
+
<tr>
|
|
109
|
+
<td rowspan="1" colSpan="1" >[sendC2CCustomMessage](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a5fc3b87e9782e679c08926d07e486b90)</td>
|
|
110
|
+
|
|
111
|
+
<td rowspan="1" colSpan="1" >发送单聊(C2C)自定义(信令)消息</td>
|
|
112
|
+
</tr>
|
|
113
|
+
|
|
114
|
+
<tr>
|
|
115
|
+
<td rowspan="1" colSpan="1" >[sendGroupTextMessage](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a07788874071937fac6c7093185b145f7)</td>
|
|
116
|
+
|
|
117
|
+
<td rowspan="1" colSpan="1" >发送群聊普通文本消息</td>
|
|
118
|
+
</tr>
|
|
119
|
+
|
|
120
|
+
<tr>
|
|
121
|
+
<td rowspan="1" colSpan="1" >[sendGroupCustomMessage](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a537560a58d49aad36406f6d9db6ded65)</td>
|
|
122
|
+
|
|
123
|
+
<td rowspan="1" colSpan="1" >发送群聊自定义(信令)消息</td>
|
|
124
|
+
</tr>
|
|
125
|
+
</table>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## 信令接口
|
|
129
|
+
<table>
|
|
130
|
+
<tr>
|
|
131
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
132
|
+
|
|
133
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
134
|
+
</tr>
|
|
135
|
+
|
|
136
|
+
<tr>
|
|
137
|
+
<td rowspan="1" colSpan="1" >[addSignalingListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#a3a7fde0d4d5a342bd93299deaf98e1d1)</td>
|
|
138
|
+
|
|
139
|
+
<td rowspan="1" colSpan="1" >添加信令监听</td>
|
|
140
|
+
</tr>
|
|
141
|
+
|
|
142
|
+
<tr>
|
|
143
|
+
<td rowspan="1" colSpan="1" >[removeSignalingListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#ae730297ec335735eee3c2f3c464bde33)</td>
|
|
144
|
+
|
|
145
|
+
<td rowspan="1" colSpan="1" >移除信令监听</td>
|
|
146
|
+
</tr>
|
|
147
|
+
|
|
148
|
+
<tr>
|
|
149
|
+
<td rowspan="1" colSpan="1" >[invite](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#a594071fa1a70373582ed6082c581b332)</td>
|
|
150
|
+
|
|
151
|
+
<td rowspan="1" colSpan="1" >邀请某个人</td>
|
|
152
|
+
</tr>
|
|
153
|
+
|
|
154
|
+
<tr>
|
|
155
|
+
<td rowspan="1" colSpan="1" >[inviteInGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#ac01a4e703c925aaf5f78df67faca15be)</td>
|
|
156
|
+
|
|
157
|
+
<td rowspan="1" colSpan="1" >邀请群内的某些人</td>
|
|
158
|
+
</tr>
|
|
159
|
+
|
|
160
|
+
<tr>
|
|
161
|
+
<td rowspan="1" colSpan="1" >[cancel](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#acaac35e5db28db783420b5eb39d53e6f)</td>
|
|
162
|
+
|
|
163
|
+
<td rowspan="1" colSpan="1" >邀请方取消邀请</td>
|
|
164
|
+
</tr>
|
|
165
|
+
|
|
166
|
+
<tr>
|
|
167
|
+
<td rowspan="1" colSpan="1" >[accept](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#a1ffb6daba9deed8780f869205daf7771)</td>
|
|
168
|
+
|
|
169
|
+
<td rowspan="1" colSpan="1" >接收方接收邀请</td>
|
|
170
|
+
</tr>
|
|
171
|
+
|
|
172
|
+
<tr>
|
|
173
|
+
<td rowspan="1" colSpan="1" >[reject](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#a39e685924aaa4d22daa88f2ec96aa827)</td>
|
|
174
|
+
|
|
175
|
+
<td rowspan="1" colSpan="1" >接收方拒绝邀请</td>
|
|
176
|
+
</tr>
|
|
177
|
+
|
|
178
|
+
<tr>
|
|
179
|
+
<td rowspan="1" colSpan="1" >[getSignalingInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#a0b149836793b8f2d54889b1c3ae40362)</td>
|
|
180
|
+
|
|
181
|
+
<td rowspan="1" colSpan="1" >获取信令信息</td>
|
|
182
|
+
</tr>
|
|
183
|
+
|
|
184
|
+
<tr>
|
|
185
|
+
<td rowspan="1" colSpan="1" >[addInvitedSignaling](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#aedfb31fdd3289af36c092b55adeed231)</td>
|
|
186
|
+
|
|
187
|
+
<td rowspan="1" colSpan="1" >添加邀请信令(可以用于群离线推送消息触发的邀请信令)</td>
|
|
188
|
+
</tr>
|
|
189
|
+
|
|
190
|
+
<tr>
|
|
191
|
+
<td rowspan="1" colSpan="1" >[modifyInvitation](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Signaling_08.html#a1f1d6f5053c07996a611e284ac15cbb5)</td>
|
|
192
|
+
|
|
193
|
+
<td rowspan="1" colSpan="1" >修改邀请信令</td>
|
|
194
|
+
</tr>
|
|
195
|
+
</table>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## 高级消息收发接口
|
|
199
|
+
|
|
200
|
+
如果您需要收发图片、视频、文件等富媒体消息,并需要撤回消息、标记已读、查询历史消息等高级功能,推荐使用下面这套高级消息接口(简单消息接口和高级消息接口请不要混用)。
|
|
201
|
+
<table>
|
|
202
|
+
<tr>
|
|
203
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
204
|
+
|
|
205
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
206
|
+
</tr>
|
|
207
|
+
|
|
208
|
+
<tr>
|
|
209
|
+
<td rowspan="1" colSpan="1" >[addAdvancedMsgListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#acf794752cc6bfa786aea5cd7fabadfab)</td>
|
|
210
|
+
|
|
211
|
+
<td rowspan="1" colSpan="1" >设置高级消息的事件监听器,请不要同 [addSimpleMsgListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a149cdf7924aa13746692d18d605def88) 混用</td>
|
|
212
|
+
</tr>
|
|
213
|
+
|
|
214
|
+
<tr>
|
|
215
|
+
<td rowspan="1" colSpan="1" >[removeAdvancedMsgListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a28aeebff4a791c9bb8f91a4f61e020e6)</td>
|
|
216
|
+
|
|
217
|
+
<td rowspan="1" colSpan="1" >移除高级消息监听器</td>
|
|
218
|
+
</tr>
|
|
219
|
+
|
|
220
|
+
<tr>
|
|
221
|
+
<td rowspan="1" colSpan="1" >[createTextMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a609f4d4c374d9df3abf9974ff8112fc3)</td>
|
|
222
|
+
|
|
223
|
+
<td rowspan="1" colSpan="1" >创建文本消息</td>
|
|
224
|
+
</tr>
|
|
225
|
+
|
|
226
|
+
<tr>
|
|
227
|
+
<td rowspan="1" colSpan="1" >[createTextAtMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#aaebbd8ed9b9766d01f996ec722744346)</td>
|
|
228
|
+
|
|
229
|
+
<td rowspan="1" colSpan="1" >创建 @ 文本消息</td>
|
|
230
|
+
</tr>
|
|
231
|
+
|
|
232
|
+
<tr>
|
|
233
|
+
<td rowspan="1" colSpan="1" >[createCustomMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a7a38c42f63a4e0c9e89f6c56dd0da316)</td>
|
|
234
|
+
|
|
235
|
+
<td rowspan="1" colSpan="1" >创建自定义消息</td>
|
|
236
|
+
</tr>
|
|
237
|
+
|
|
238
|
+
<tr>
|
|
239
|
+
<td rowspan="1" colSpan="1" >[createImageMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a23033a764f0d95ce83c52f3cdeea4137)</td>
|
|
240
|
+
|
|
241
|
+
<td rowspan="1" colSpan="1" >创建图片消息</td>
|
|
242
|
+
</tr>
|
|
243
|
+
|
|
244
|
+
<tr>
|
|
245
|
+
<td rowspan="1" colSpan="1" >[createSoundMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a9073007806fa186b8999ce656555032a)</td>
|
|
246
|
+
|
|
247
|
+
<td rowspan="1" colSpan="1" >创建语音消息</td>
|
|
248
|
+
</tr>
|
|
249
|
+
|
|
250
|
+
<tr>
|
|
251
|
+
<td rowspan="1" colSpan="1" >[createVideoMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a233a9ee5ef2ea371206005d109757f18)</td>
|
|
252
|
+
|
|
253
|
+
<td rowspan="1" colSpan="1" >创建视频消息</td>
|
|
254
|
+
</tr>
|
|
255
|
+
|
|
256
|
+
<tr>
|
|
257
|
+
<td rowspan="1" colSpan="1" >[createFileMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a9e487ae9541111038ebed900ab639d4c)</td>
|
|
258
|
+
|
|
259
|
+
<td rowspan="1" colSpan="1" >创建文件消息</td>
|
|
260
|
+
</tr>
|
|
261
|
+
|
|
262
|
+
<tr>
|
|
263
|
+
<td rowspan="1" colSpan="1" >[createLocationMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a2a997472dd62d794cfd4e3a42cfab930)</td>
|
|
264
|
+
|
|
265
|
+
<td rowspan="1" colSpan="1" >创建地理位置消息</td>
|
|
266
|
+
</tr>
|
|
267
|
+
|
|
268
|
+
<tr>
|
|
269
|
+
<td rowspan="1" colSpan="1" >[createFaceMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#ab7a593be2cca1c8eddd7e73255f3f34a)</td>
|
|
270
|
+
|
|
271
|
+
<td rowspan="1" colSpan="1" >创建表情消息</td>
|
|
272
|
+
</tr>
|
|
273
|
+
|
|
274
|
+
<tr>
|
|
275
|
+
<td rowspan="1" colSpan="1" >[createMergerMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a2943bb31403aeb22f8582cd9966cf13e)</td>
|
|
276
|
+
|
|
277
|
+
<td rowspan="1" colSpan="1" >创建合并转发消息</td>
|
|
278
|
+
</tr>
|
|
279
|
+
|
|
280
|
+
<tr>
|
|
281
|
+
<td rowspan="1" colSpan="1" >[createForwardMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a05d088b7d9883e18af41355cdd3f4562)</td>
|
|
282
|
+
|
|
283
|
+
<td rowspan="1" colSpan="1" >创建单条转发消息</td>
|
|
284
|
+
</tr>
|
|
285
|
+
|
|
286
|
+
<tr>
|
|
287
|
+
<td rowspan="1" colSpan="1" >[createTargetedGroupMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a8bddd2f566a53362b4da5448fdd18fbc)</td>
|
|
288
|
+
|
|
289
|
+
<td rowspan="1" colSpan="1" >创建定向群消息</td>
|
|
290
|
+
</tr>
|
|
291
|
+
|
|
292
|
+
<tr>
|
|
293
|
+
<td rowspan="1" colSpan="1" >[createAtSignedGroupMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#adfb065794694a2061af2642f18c4aeb7)</td>
|
|
294
|
+
|
|
295
|
+
<td rowspan="1" colSpan="1" >创建带 @ 标记的群消息</td>
|
|
296
|
+
</tr>
|
|
297
|
+
|
|
298
|
+
<tr>
|
|
299
|
+
<td rowspan="1" colSpan="1" >[sendMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a681947465d6ab718da40f7f983740a21)</td>
|
|
300
|
+
|
|
301
|
+
<td rowspan="1" colSpan="1" >发送消息,消息对象可以由 createXXXMessage 接口创建得来</td>
|
|
302
|
+
</tr>
|
|
303
|
+
|
|
304
|
+
<tr>
|
|
305
|
+
<td rowspan="1" colSpan="1" >[setC2CReceiveMessageOpt](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#ae628f19d856921d27081c3f40005e9d9)</td>
|
|
306
|
+
|
|
307
|
+
<td rowspan="1" colSpan="1" >设置单聊消息免打扰</td>
|
|
308
|
+
</tr>
|
|
309
|
+
|
|
310
|
+
<tr>
|
|
311
|
+
<td rowspan="1" colSpan="1" >[getC2CReceiveMessageOpt](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a1c743a6fe1d17a21dc80e584fd1de2d1)</td>
|
|
312
|
+
|
|
313
|
+
<td rowspan="1" colSpan="1" >获取单聊消息免打扰状态</td>
|
|
314
|
+
</tr>
|
|
315
|
+
|
|
316
|
+
<tr>
|
|
317
|
+
<td rowspan="1" colSpan="1" >[setGroupReceiveMessageOpt](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a379eeef926e41ec5d48287e7fb55b80a)</td>
|
|
318
|
+
|
|
319
|
+
<td rowspan="1" colSpan="1" >设置群聊消息免打扰状态</td>
|
|
320
|
+
</tr>
|
|
321
|
+
|
|
322
|
+
<tr>
|
|
323
|
+
<td rowspan="1" colSpan="1" >[setAllReceiveMessageOpt](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a6495713ce966d3e6cc769616cdfdb846)</td>
|
|
324
|
+
|
|
325
|
+
<td rowspan="1" colSpan="1" >设置全局消息接收选项(可实现按天重复)</td>
|
|
326
|
+
</tr>
|
|
327
|
+
|
|
328
|
+
<tr>
|
|
329
|
+
<td rowspan="1" colSpan="1" >[setAllReceiveMessageOpt](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a395aa64727b7743930366be50cc78073)</td>
|
|
330
|
+
|
|
331
|
+
<td rowspan="1" colSpan="1" >设置全局消息接收选项</td>
|
|
332
|
+
</tr>
|
|
333
|
+
|
|
334
|
+
<tr>
|
|
335
|
+
<td rowspan="1" colSpan="1" >[getAllReceiveMessageOpt](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#abca3b16a8f25149867108dad53d43ca0)</td>
|
|
336
|
+
|
|
337
|
+
<td rowspan="1" colSpan="1" >获取登录用户全局消息接收选项</td>
|
|
338
|
+
</tr>
|
|
339
|
+
|
|
340
|
+
<tr>
|
|
341
|
+
<td rowspan="1" colSpan="1" >[getC2CHistoryMessageList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#abca63ad64f69aa4f424cf11849a9b89e)</td>
|
|
342
|
+
|
|
343
|
+
<td rowspan="1" colSpan="1" >获取单聊(C2C)历史消息</td>
|
|
344
|
+
</tr>
|
|
345
|
+
|
|
346
|
+
<tr>
|
|
347
|
+
<td rowspan="1" colSpan="1" >[getGroupHistoryMessageList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a9e242ba327377fe74b83e8d5572d39a0)</td>
|
|
348
|
+
|
|
349
|
+
<td rowspan="1" colSpan="1" >获取群组历史消息</td>
|
|
350
|
+
</tr>
|
|
351
|
+
|
|
352
|
+
<tr>
|
|
353
|
+
<td rowspan="1" colSpan="1" >[getHistoryMessageList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a99e8f00ee60df12e346548b743523218)</td>
|
|
354
|
+
|
|
355
|
+
<td rowspan="1" colSpan="1" >获取历史消息高级接口</td>
|
|
356
|
+
</tr>
|
|
357
|
+
|
|
358
|
+
<tr>
|
|
359
|
+
<td rowspan="1" colSpan="1" >[revokeMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a2ef856a792923811e9d16ed7a101336a)</td>
|
|
360
|
+
|
|
361
|
+
<td rowspan="1" colSpan="1" >撤回消息,消息对象可以由 createXXXMessage 接口创建得来</td>
|
|
362
|
+
</tr>
|
|
363
|
+
|
|
364
|
+
<tr>
|
|
365
|
+
<td rowspan="1" colSpan="1" >[modifyMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a7609c2dd8550e43b23d24069200d37cb)</td>
|
|
366
|
+
|
|
367
|
+
<td rowspan="1" colSpan="1" >消息变更</td>
|
|
368
|
+
</tr>
|
|
369
|
+
|
|
370
|
+
<tr>
|
|
371
|
+
<td rowspan="1" colSpan="1" >[deleteMessageFromLocalStorage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a2bb42528f4d166ac826914094655841c)</td>
|
|
372
|
+
|
|
373
|
+
<td rowspan="1" colSpan="1" >删除本地消息</td>
|
|
374
|
+
</tr>
|
|
375
|
+
|
|
376
|
+
<tr>
|
|
377
|
+
<td rowspan="1" colSpan="1" >[deleteMessages](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a9e394ea720ecdc10d497b63b6f2b22c4)</td>
|
|
378
|
+
|
|
379
|
+
<td rowspan="1" colSpan="1" >删除本地及云端的消息</td>
|
|
380
|
+
</tr>
|
|
381
|
+
|
|
382
|
+
<tr>
|
|
383
|
+
<td rowspan="1" colSpan="1" >[clearC2CHistoryMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a005c7767172d9a3980974b68c780c33b)</td>
|
|
384
|
+
|
|
385
|
+
<td rowspan="1" colSpan="1" >清空单聊本地及云端的消息</td>
|
|
386
|
+
</tr>
|
|
387
|
+
|
|
388
|
+
<tr>
|
|
389
|
+
<td rowspan="1" colSpan="1" >[clearGroupHistoryMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a16c01c19a285e2bd11443c868c8256e6)</td>
|
|
390
|
+
|
|
391
|
+
<td rowspan="1" colSpan="1" >清空群聊本地及云端的消息</td>
|
|
392
|
+
</tr>
|
|
393
|
+
|
|
394
|
+
<tr>
|
|
395
|
+
<td rowspan="1" colSpan="1" >[insertGroupMessageToLocalStorage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a9b312b67e4da19978b55a7b915815dfe)</td>
|
|
396
|
+
|
|
397
|
+
<td rowspan="1" colSpan="1" >向群组消息列表中添加一条消息</td>
|
|
398
|
+
</tr>
|
|
399
|
+
|
|
400
|
+
<tr>
|
|
401
|
+
<td rowspan="1" colSpan="1" >[insertC2CMessageToLocalStorage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#acc1dccd310d1965248cff0d4fd5ca45f)</td>
|
|
402
|
+
|
|
403
|
+
<td rowspan="1" colSpan="1" >向单聊消息列表中添加一条消息</td>
|
|
404
|
+
</tr>
|
|
405
|
+
|
|
406
|
+
<tr>
|
|
407
|
+
<td rowspan="1" colSpan="1" >[findMessages](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a4a0c47d706d8784656225c1e9065f6f1)</td>
|
|
408
|
+
|
|
409
|
+
<td rowspan="1" colSpan="1" >根据 msgID 查找本地消息</td>
|
|
410
|
+
</tr>
|
|
411
|
+
|
|
412
|
+
<tr>
|
|
413
|
+
<td rowspan="1" colSpan="1" >[searchLocalMessages](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a10878d0bd326b07ec6a605c5695c7de1)</td>
|
|
414
|
+
|
|
415
|
+
<td rowspan="1" colSpan="1" >搜索本地消息</td>
|
|
416
|
+
</tr>
|
|
417
|
+
|
|
418
|
+
<tr>
|
|
419
|
+
<td rowspan="1" colSpan="1" >[searchCloudMessages](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#ab672a5d549893b7e22c555593be40322)</td>
|
|
420
|
+
|
|
421
|
+
<td rowspan="1" colSpan="1" >搜索云端消息</td>
|
|
422
|
+
</tr>
|
|
423
|
+
|
|
424
|
+
<tr>
|
|
425
|
+
<td rowspan="1" colSpan="1" >[sendMessageReadReceipts](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a375af7e0f3e0f0b3135ccd517de9fdd8)</td>
|
|
426
|
+
|
|
427
|
+
<td rowspan="1" colSpan="1" >发送消息已读回执</td>
|
|
428
|
+
</tr>
|
|
429
|
+
|
|
430
|
+
<tr>
|
|
431
|
+
<td rowspan="1" colSpan="1" >[getMessageReadReceipts](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a69192bc43e551f34f5d483dae5e70410)</td>
|
|
432
|
+
|
|
433
|
+
<td rowspan="1" colSpan="1" >获取消息已读回执</td>
|
|
434
|
+
</tr>
|
|
435
|
+
|
|
436
|
+
<tr>
|
|
437
|
+
<td rowspan="1" colSpan="1" >[getGroupMessageReadMemberList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#aa345a87cfa4da2983f878bb5385d0b82)</td>
|
|
438
|
+
|
|
439
|
+
<td rowspan="1" colSpan="1" >获取群消息已读群成员列表</td>
|
|
440
|
+
</tr>
|
|
441
|
+
|
|
442
|
+
<tr>
|
|
443
|
+
<td rowspan="1" colSpan="1" >[setMessageExtensions](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a2e8b8f7ef94d02823cfab0cf5b1e1fea)</td>
|
|
444
|
+
|
|
445
|
+
<td rowspan="1" colSpan="1" >设置消息扩展</td>
|
|
446
|
+
</tr>
|
|
447
|
+
|
|
448
|
+
<tr>
|
|
449
|
+
<td rowspan="1" colSpan="1" >[getMessageExtensions](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a3ae68d2d8aeff6abd21981914836dc1a)</td>
|
|
450
|
+
|
|
451
|
+
<td rowspan="1" colSpan="1" >获取消息扩展</td>
|
|
452
|
+
</tr>
|
|
453
|
+
|
|
454
|
+
<tr>
|
|
455
|
+
<td rowspan="1" colSpan="1" >[deleteMessageExtensions](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#af3fad5575625e7597a482375d7a65fa6)</td>
|
|
456
|
+
|
|
457
|
+
<td rowspan="1" colSpan="1" >删除消息扩展</td>
|
|
458
|
+
</tr>
|
|
459
|
+
|
|
460
|
+
<tr>
|
|
461
|
+
<td rowspan="1" colSpan="1" >[addMessageReaction](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a425d818c392bef6c6daeddef8c9c0cc1)</td>
|
|
462
|
+
|
|
463
|
+
<td rowspan="1" colSpan="1" >添加消息回应</td>
|
|
464
|
+
</tr>
|
|
465
|
+
|
|
466
|
+
<tr>
|
|
467
|
+
<td rowspan="1" colSpan="1" >[removeMessageReaction](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a88d3bf59edf75dd06ef9067b08b7db00)</td>
|
|
468
|
+
|
|
469
|
+
<td rowspan="1" colSpan="1" >删除消息回应</td>
|
|
470
|
+
</tr>
|
|
471
|
+
|
|
472
|
+
<tr>
|
|
473
|
+
<td rowspan="1" colSpan="1" >[getMessageReactions](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#ab3d6d68379e25750ba1b0154d956e62c)</td>
|
|
474
|
+
|
|
475
|
+
<td rowspan="1" colSpan="1" >批量拉取多条消息回应信息</td>
|
|
476
|
+
</tr>
|
|
477
|
+
|
|
478
|
+
<tr>
|
|
479
|
+
<td rowspan="1" colSpan="1" >[getAllUserListOfMessageReaction](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#af26823c8deb12d0b0c5dc885431da182)</td>
|
|
480
|
+
|
|
481
|
+
<td rowspan="1" colSpan="1" >分页拉取消息回应全部用户资料</td>
|
|
482
|
+
</tr>
|
|
483
|
+
|
|
484
|
+
<tr>
|
|
485
|
+
<td rowspan="1" colSpan="1" >[translateText](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#aee0c1e26b0401576ee82967698da35f6)</td>
|
|
486
|
+
|
|
487
|
+
<td rowspan="1" colSpan="1" >翻译文本消息</td>
|
|
488
|
+
</tr>
|
|
489
|
+
|
|
490
|
+
<tr>
|
|
491
|
+
<td rowspan="1" colSpan="1" >[pinGroupMessage](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a4bd9a32e4525e75778708bfde5b95c62)</td>
|
|
492
|
+
|
|
493
|
+
<td rowspan="1" colSpan="1" >设置群消息置顶</td>
|
|
494
|
+
</tr>
|
|
495
|
+
|
|
496
|
+
<tr>
|
|
497
|
+
<td rowspan="1" colSpan="1" >[getPinnedGroupMessageList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#afee75362418c0dbd3f2337fea5865179)</td>
|
|
498
|
+
|
|
499
|
+
<td rowspan="1" colSpan="1" >获取已置顶的群消息列表</td>
|
|
500
|
+
</tr>
|
|
501
|
+
|
|
502
|
+
<tr>
|
|
503
|
+
<td rowspan="1" colSpan="1" >[markC2CMessageAsRead](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#acb3a67bd2fa131b50c611a48fa78f34d)</td>
|
|
504
|
+
|
|
505
|
+
<td rowspan="1" colSpan="1" >设置单聊(C2C)消息已读(待废弃接口,请使用 [cleanConversationUnreadMessageCount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a820c2f598f7554428fb980df3f7357f0) 接口)</td>
|
|
506
|
+
</tr>
|
|
507
|
+
|
|
508
|
+
<tr>
|
|
509
|
+
<td rowspan="1" colSpan="1" >[markGroupMessageAsRead](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a7fc79e30877b8d77fbdfa24e057376dc)</td>
|
|
510
|
+
|
|
511
|
+
<td rowspan="1" colSpan="1" >设置群组消息已读(待废弃接口,请使用 [cleanConversationUnreadMessageCount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a820c2f598f7554428fb980df3f7357f0) 接口)</td>
|
|
512
|
+
</tr>
|
|
513
|
+
|
|
514
|
+
<tr>
|
|
515
|
+
<td rowspan="1" colSpan="1" >[markAllMessageAsRead](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Message_08.html#a53d889a6242b5551aa3655e40967a62f)</td>
|
|
516
|
+
|
|
517
|
+
<td rowspan="1" colSpan="1" >标记所有会话为已读(待废弃接口,请使用 [cleanConversationUnreadMessageCount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a820c2f598f7554428fb980df3f7357f0) 接口)</td>
|
|
518
|
+
</tr>
|
|
519
|
+
</table>
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
## 群组相关接口
|
|
523
|
+
|
|
524
|
+
腾讯云 IM SDK 支持五种预设的群组类型,每种类型都有其适用场景:
|
|
525
|
+
- 工作群(Work) :类似普通微信群,创建后不能自由加入,必须由已经在群的用户邀请入群,同旧版本中的 Private。
|
|
526
|
+
|
|
527
|
+
- 公开群(Public) :类似 QQ 群,用户申请加入,但需要群主或管理员审批。
|
|
528
|
+
|
|
529
|
+
- 会议群(Meeting):适合跟 [TRTC](https://cloud.tencent.com/product/trtc) 结合实现视频会议和在线教育等场景,支持随意进出,支持查看进群前的历史消息,同旧版本中的 ChatRoom。
|
|
530
|
+
|
|
531
|
+
- 社群(Community):创建后可以随意进出,适合用于知识分享和游戏交流等超大社区群聊场景。该功能支持终端 SDK 5.8.1668增强版及以上版本、Web SDK 2.17.0及以上版本,需 [购买旗舰版或企业版套餐包](https://buy.cloud.tencent.com/avc?from=17182) 并在 [控制台](https://console.cloud.tencent.com/im) > **功能配置 **> **群组配置 **> **群功能配置 **> **社群**中开通。
|
|
532
|
+
|
|
533
|
+
- 直播群(AVChatRoom):适合直播弹幕聊天室等场景,支持随意进出,人数无上限。
|
|
534
|
+
|
|
535
|
+
<table>
|
|
536
|
+
<tr>
|
|
537
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
538
|
+
|
|
539
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
540
|
+
</tr>
|
|
541
|
+
|
|
542
|
+
<tr>
|
|
543
|
+
<td rowspan="1" colSpan="1" >[setGroupListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a74de68e55d787fd1d4ec83b99cd1fcab)</td>
|
|
544
|
+
|
|
545
|
+
<td rowspan="1" colSpan="1" >设置群组监听器(待废弃接口,请使用 addGroupListener 和 removeGroupListener 接口)</td>
|
|
546
|
+
</tr>
|
|
547
|
+
|
|
548
|
+
<tr>
|
|
549
|
+
<td rowspan="1" colSpan="1" >[addGroupListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#af583b113cdec570b08ae80d682fba52c)</td>
|
|
550
|
+
|
|
551
|
+
<td rowspan="1" colSpan="1" >添加群组监听器</td>
|
|
552
|
+
</tr>
|
|
553
|
+
|
|
554
|
+
<tr>
|
|
555
|
+
<td rowspan="1" colSpan="1" >[removeGroupListener](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a2b2093489bf869f70c03be39f4ed08a1)</td>
|
|
556
|
+
|
|
557
|
+
<td rowspan="1" colSpan="1" >移除群组监听器</td>
|
|
558
|
+
</tr>
|
|
559
|
+
|
|
560
|
+
<tr>
|
|
561
|
+
<td rowspan="1" colSpan="1" >[createGroup](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a3bbcf819c1ec70e520b7f9a42cfbb989)</td>
|
|
562
|
+
|
|
563
|
+
<td rowspan="1" colSpan="1" >创建群组(简单版本)</td>
|
|
564
|
+
</tr>
|
|
565
|
+
|
|
566
|
+
<tr>
|
|
567
|
+
<td rowspan="1" colSpan="1" >[createGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a59824434b6096180b94d8152183dcd2c)</td>
|
|
568
|
+
|
|
569
|
+
<td rowspan="1" colSpan="1" >创建群组(高级版本),可在建群同时设置群信息和初始的群成员</td>
|
|
570
|
+
</tr>
|
|
571
|
+
|
|
572
|
+
<tr>
|
|
573
|
+
<td rowspan="1" colSpan="1" >[joinGroup](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a4762156b7a98489eb4715de53028e12a)</td>
|
|
574
|
+
|
|
575
|
+
<td rowspan="1" colSpan="1" >加入群组</td>
|
|
576
|
+
</tr>
|
|
577
|
+
|
|
578
|
+
<tr>
|
|
579
|
+
<td rowspan="1" colSpan="1" >[quitGroup](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#ac2a43b3ada447131df0c5f19e8079be5)</td>
|
|
580
|
+
|
|
581
|
+
<td rowspan="1" colSpan="1" >退出群组</td>
|
|
582
|
+
</tr>
|
|
583
|
+
|
|
584
|
+
<tr>
|
|
585
|
+
<td rowspan="1" colSpan="1" >[dismissGroup](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a5bd55cb04867985253949d8cc78f860e)</td>
|
|
586
|
+
|
|
587
|
+
<td rowspan="1" colSpan="1" >解散群组(仅群主和管理员可以解散)</td>
|
|
588
|
+
</tr>
|
|
589
|
+
|
|
590
|
+
<tr>
|
|
591
|
+
<td rowspan="1" colSpan="1" >[getJoinedGroupList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a4599e99791c150cc9f3e2492e8b4ce04)</td>
|
|
592
|
+
|
|
593
|
+
<td rowspan="1" colSpan="1" >获取已经加入的群列表(不包括已加入的直播群)</td>
|
|
594
|
+
</tr>
|
|
595
|
+
|
|
596
|
+
<tr>
|
|
597
|
+
<td rowspan="1" colSpan="1" >[getGroupsInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a9bca7e5318cfed44335566a783a6b568)</td>
|
|
598
|
+
|
|
599
|
+
<td rowspan="1" colSpan="1" >拉取群资料</td>
|
|
600
|
+
</tr>
|
|
601
|
+
|
|
602
|
+
<tr>
|
|
603
|
+
<td rowspan="1" colSpan="1" >[searchGroups](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#ac9a960921e512621340159d82a4b5259)</td>
|
|
604
|
+
|
|
605
|
+
<td rowspan="1" colSpan="1" >搜索本地群资料</td>
|
|
606
|
+
</tr>
|
|
607
|
+
|
|
608
|
+
<tr>
|
|
609
|
+
<td rowspan="1" colSpan="1" >[searchCloudGroups](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a8c3f83c844be3c8bb13fe9cec6fd658a)</td>
|
|
610
|
+
|
|
611
|
+
<td rowspan="1" colSpan="1" >搜索云端群资料</td>
|
|
612
|
+
</tr>
|
|
613
|
+
|
|
614
|
+
<tr>
|
|
615
|
+
<td rowspan="1" colSpan="1" >[setGroupInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#aa9519a479493e56d7920e40aba796144)</td>
|
|
616
|
+
|
|
617
|
+
<td rowspan="1" colSpan="1" >修改群资料</td>
|
|
618
|
+
</tr>
|
|
619
|
+
|
|
620
|
+
<tr>
|
|
621
|
+
<td rowspan="1" colSpan="1" >[initGroupAttributes](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a1b3a56dfc345f1ef2a575cb36156e745)</td>
|
|
622
|
+
|
|
623
|
+
<td rowspan="1" colSpan="1" >初始化群属性</td>
|
|
624
|
+
</tr>
|
|
625
|
+
|
|
626
|
+
<tr>
|
|
627
|
+
<td rowspan="1" colSpan="1" >[setGroupAttributes](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a134342ddb51d1ee83f3981ed91d26885)</td>
|
|
628
|
+
|
|
629
|
+
<td rowspan="1" colSpan="1" >设置群属性</td>
|
|
630
|
+
</tr>
|
|
631
|
+
|
|
632
|
+
<tr>
|
|
633
|
+
<td rowspan="1" colSpan="1" >[deleteGroupAttributes](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#aa504ffca9492580ca27a45f78a87e2cb)</td>
|
|
634
|
+
|
|
635
|
+
<td rowspan="1" colSpan="1" >删除群属性</td>
|
|
636
|
+
</tr>
|
|
637
|
+
|
|
638
|
+
<tr>
|
|
639
|
+
<td rowspan="1" colSpan="1" >[getGroupAttributes](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#ac8a74db230669d1b49da47bb0895cbf9)</td>
|
|
640
|
+
|
|
641
|
+
<td rowspan="1" colSpan="1" >获取群属性</td>
|
|
642
|
+
</tr>
|
|
643
|
+
|
|
644
|
+
<tr>
|
|
645
|
+
<td rowspan="1" colSpan="1" >[getGroupOnlineMemberCount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#ada2eadb44f6865e9848df94fb5bae4ae)</td>
|
|
646
|
+
|
|
647
|
+
<td rowspan="1" colSpan="1" >获取群在线人数</td>
|
|
648
|
+
</tr>
|
|
649
|
+
|
|
650
|
+
<tr>
|
|
651
|
+
<td rowspan="1" colSpan="1" >[setGroupCounters](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a712b2338d3ea7b8e810111db12709c35)</td>
|
|
652
|
+
|
|
653
|
+
<td rowspan="1" colSpan="1" >设置群计数器</td>
|
|
654
|
+
</tr>
|
|
655
|
+
|
|
656
|
+
<tr>
|
|
657
|
+
<td rowspan="1" colSpan="1" >[getGroupCounters](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#ab4e9e7fd4c6db5f979faf7f103dc5bd6)</td>
|
|
658
|
+
|
|
659
|
+
<td rowspan="1" colSpan="1" >获取群计数器</td>
|
|
660
|
+
</tr>
|
|
661
|
+
|
|
662
|
+
<tr>
|
|
663
|
+
<td rowspan="1" colSpan="1" >[increaseGroupCounter](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a58647ae926410735a0e9b83c3ae05406)</td>
|
|
664
|
+
|
|
665
|
+
<td rowspan="1" colSpan="1" >递增群计数器</td>
|
|
666
|
+
</tr>
|
|
667
|
+
|
|
668
|
+
<tr>
|
|
669
|
+
<td rowspan="1" colSpan="1" >[decreaseGroupCounter](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a9fb85e6cf4ad0e538de955c46833bafb)</td>
|
|
670
|
+
|
|
671
|
+
<td rowspan="1" colSpan="1" >递减群计数器</td>
|
|
672
|
+
</tr>
|
|
673
|
+
|
|
674
|
+
<tr>
|
|
675
|
+
<td rowspan="1" colSpan="1" >[getGroupMemberList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a98681b9036e73acbe8f84737b5291326)</td>
|
|
676
|
+
|
|
677
|
+
<td rowspan="1" colSpan="1" >获取群成员列表</td>
|
|
678
|
+
</tr>
|
|
679
|
+
|
|
680
|
+
<tr>
|
|
681
|
+
<td rowspan="1" colSpan="1" >[getGroupMembersInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a1ab284b80811bcc697d689d7b97edf04)</td>
|
|
682
|
+
|
|
683
|
+
<td rowspan="1" colSpan="1" >获取指定的群成员资料</td>
|
|
684
|
+
</tr>
|
|
685
|
+
|
|
686
|
+
<tr>
|
|
687
|
+
<td rowspan="1" colSpan="1" >[searchGroupMembers](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a35ceb734976c833047cceb8b31055b18)</td>
|
|
688
|
+
|
|
689
|
+
<td rowspan="1" colSpan="1" >搜索本地群成员资料</td>
|
|
690
|
+
</tr>
|
|
691
|
+
|
|
692
|
+
<tr>
|
|
693
|
+
<td rowspan="1" colSpan="1" >[searchCloudGroupMembers](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#ae2f92bf458c5b6ef0149d66de7a01896)</td>
|
|
694
|
+
|
|
695
|
+
<td rowspan="1" colSpan="1" >搜索云端群成员资料</td>
|
|
696
|
+
</tr>
|
|
697
|
+
|
|
698
|
+
<tr>
|
|
699
|
+
<td rowspan="1" colSpan="1" >[setGroupMemberInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a40b97ee4b138f93e1b2073d1bdff3756)</td>
|
|
700
|
+
|
|
701
|
+
<td rowspan="1" colSpan="1" >修改指定的群成员资料</td>
|
|
702
|
+
</tr>
|
|
703
|
+
|
|
704
|
+
<tr>
|
|
705
|
+
<td rowspan="1" colSpan="1" >[muteGroupMember](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#aa8a0206f75d75400b517f7e0d80fe9ee)</td>
|
|
706
|
+
|
|
707
|
+
<td rowspan="1" colSpan="1" >禁言</td>
|
|
708
|
+
</tr>
|
|
709
|
+
|
|
710
|
+
<tr>
|
|
711
|
+
<td rowspan="1" colSpan="1" >[muteAllGroupMembers](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a7749c65c3adca4a48611ab4265407cf6)</td>
|
|
712
|
+
|
|
713
|
+
<td rowspan="1" colSpan="1" >禁言全体群成员</td>
|
|
714
|
+
</tr>
|
|
715
|
+
|
|
716
|
+
<tr>
|
|
717
|
+
<td rowspan="1" colSpan="1" >[inviteUserToGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a942d75fdea66e22cdbd8c131cf18e1ea)</td>
|
|
718
|
+
|
|
719
|
+
<td rowspan="1" colSpan="1" >邀请他人入群</td>
|
|
720
|
+
</tr>
|
|
721
|
+
|
|
722
|
+
<tr>
|
|
723
|
+
<td rowspan="1" colSpan="1" >[kickGroupMember](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a0581f28fddf2ade890aa62e4318d7a97)</td>
|
|
724
|
+
|
|
725
|
+
<td rowspan="1" colSpan="1" >踢人</td>
|
|
726
|
+
</tr>
|
|
727
|
+
|
|
728
|
+
<tr>
|
|
729
|
+
<td rowspan="1" colSpan="1" >[setGroupMemberRole](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a0f1c341a3dc53d6a6557a438b0c64b65)</td>
|
|
730
|
+
|
|
731
|
+
<td rowspan="1" colSpan="1" >切换群成员的角色</td>
|
|
732
|
+
</tr>
|
|
733
|
+
|
|
734
|
+
<tr>
|
|
735
|
+
<td rowspan="1" colSpan="1" >[markGroupMemberList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a21238536e7cb2c3fd086797e7dc1b970)</td>
|
|
736
|
+
|
|
737
|
+
<td rowspan="1" colSpan="1" >标记群成员</td>
|
|
738
|
+
</tr>
|
|
739
|
+
|
|
740
|
+
<tr>
|
|
741
|
+
<td rowspan="1" colSpan="1" >[transferGroupOwner](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a58a2ffae60505a43984fe21bf0bc1101)</td>
|
|
742
|
+
|
|
743
|
+
<td rowspan="1" colSpan="1" >转让群主</td>
|
|
744
|
+
</tr>
|
|
745
|
+
|
|
746
|
+
<tr>
|
|
747
|
+
<td rowspan="1" colSpan="1" >[kickGroupMember](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a0581f28fddf2ade890aa62e4318d7a97)</td>
|
|
748
|
+
|
|
749
|
+
<td rowspan="1" colSpan="1" >踢人</td>
|
|
750
|
+
</tr>
|
|
751
|
+
|
|
752
|
+
<tr>
|
|
753
|
+
<td rowspan="1" colSpan="1" >[getGroupApplicationList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a29c36ad685159850a30d61a6b9c637e8)</td>
|
|
754
|
+
|
|
755
|
+
<td rowspan="1" colSpan="1" >获取加群的申请列表</td>
|
|
756
|
+
</tr>
|
|
757
|
+
|
|
758
|
+
<tr>
|
|
759
|
+
<td rowspan="1" colSpan="1" >[acceptGroupApplication](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a51bb9b4f965cb3d01546fef348ac75e4)</td>
|
|
760
|
+
|
|
761
|
+
<td rowspan="1" colSpan="1" >同意某一条加群申请</td>
|
|
762
|
+
</tr>
|
|
763
|
+
|
|
764
|
+
<tr>
|
|
765
|
+
<td rowspan="1" colSpan="1" >[refuseGroupApplication](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#a46aa78c54986b2c0b7cc0012a3dc94ef)</td>
|
|
766
|
+
|
|
767
|
+
<td rowspan="1" colSpan="1" >拒绝某一条加群申请</td>
|
|
768
|
+
</tr>
|
|
769
|
+
|
|
770
|
+
<tr>
|
|
771
|
+
<td rowspan="1" colSpan="1" >[setGroupApplicationRead](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Group_08.html#ade11e93b96206ef851641c42788132d1)</td>
|
|
772
|
+
|
|
773
|
+
<td rowspan="1" colSpan="1" >标记申请列表为已读</td>
|
|
774
|
+
</tr>
|
|
775
|
+
</table>
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
## 社群话题相关接口
|
|
779
|
+
|
|
780
|
+
如果您需要在社群下创建话题,请使用这套接口。社群用来管理群成员,社群下的所有话题不仅可以共享社群成员,还可以独立收发消息而不相互干扰。
|
|
781
|
+
<table>
|
|
782
|
+
<tr>
|
|
783
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
784
|
+
|
|
785
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
786
|
+
</tr>
|
|
787
|
+
|
|
788
|
+
<tr>
|
|
789
|
+
<td rowspan="1" colSpan="1" >[addCommunityListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a81eb155a16e6b43927ced7bbf656dd84)</td>
|
|
790
|
+
|
|
791
|
+
<td rowspan="1" colSpan="1" >添加社群监听器</td>
|
|
792
|
+
</tr>
|
|
793
|
+
|
|
794
|
+
<tr>
|
|
795
|
+
<td rowspan="1" colSpan="1" >[removeCommunityListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#ae6f37357363d362bb2f1348dec7c0cb4)</td>
|
|
796
|
+
|
|
797
|
+
<td rowspan="1" colSpan="1" >移除社群监听器</td>
|
|
798
|
+
</tr>
|
|
799
|
+
|
|
800
|
+
<tr>
|
|
801
|
+
<td rowspan="1" colSpan="1" >[createCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#afeb826964ea5882c5077bda33b8a5853)</td>
|
|
802
|
+
|
|
803
|
+
<td rowspan="1" colSpan="1" >创建支持话题的社群</td>
|
|
804
|
+
</tr>
|
|
805
|
+
|
|
806
|
+
<tr>
|
|
807
|
+
<td rowspan="1" colSpan="1" >[getJoinedCommunityList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a17350dec83b7cd32d308a1f2b2827fdd)</td>
|
|
808
|
+
|
|
809
|
+
<td rowspan="1" colSpan="1" >获取当前用户已经加入的支持话题的社群列表</td>
|
|
810
|
+
</tr>
|
|
811
|
+
|
|
812
|
+
<tr>
|
|
813
|
+
<td rowspan="1" colSpan="1" >[createTopicInCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a8cc04d04254867787060cf1cae0fc5b8)</td>
|
|
814
|
+
|
|
815
|
+
<td rowspan="1" colSpan="1" >创建话题</td>
|
|
816
|
+
</tr>
|
|
817
|
+
|
|
818
|
+
<tr>
|
|
819
|
+
<td rowspan="1" colSpan="1" >[deleteTopicFromCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a31b726136637a58b5bb246eaac41187c)</td>
|
|
820
|
+
|
|
821
|
+
<td rowspan="1" colSpan="1" >删除话题</td>
|
|
822
|
+
</tr>
|
|
823
|
+
|
|
824
|
+
<tr>
|
|
825
|
+
<td rowspan="1" colSpan="1" >[setTopicInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a237e2fa6e16e55143c516c5428a23936)</td>
|
|
826
|
+
|
|
827
|
+
<td rowspan="1" colSpan="1" >修改话题信息</td>
|
|
828
|
+
</tr>
|
|
829
|
+
|
|
830
|
+
<tr>
|
|
831
|
+
<td rowspan="1" colSpan="1" >[getTopicInfoList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#af93ad10e0e2b21d6ae3c8ec45021b159)</td>
|
|
832
|
+
|
|
833
|
+
<td rowspan="1" colSpan="1" >获取话题列表</td>
|
|
834
|
+
</tr>
|
|
835
|
+
|
|
836
|
+
<tr>
|
|
837
|
+
<td rowspan="1" colSpan="1" >[createPermissionGroupInCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a476609aac093b8d0aa3404992c4919bd)</td>
|
|
838
|
+
|
|
839
|
+
<td rowspan="1" colSpan="1" >创建社群权限组</td>
|
|
840
|
+
</tr>
|
|
841
|
+
|
|
842
|
+
<tr>
|
|
843
|
+
<td rowspan="1" colSpan="1" >[deletePermissionGroupFromCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a63e60a9a9f671f176d570ce245f8ea5f)</td>
|
|
844
|
+
|
|
845
|
+
<td rowspan="1" colSpan="1" >删除社群权限组</td>
|
|
846
|
+
</tr>
|
|
847
|
+
|
|
848
|
+
<tr>
|
|
849
|
+
<td rowspan="1" colSpan="1" >[modifyPermissionGroupInfoInCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a70b591fc96714320a4e7b12212cc4211)</td>
|
|
850
|
+
|
|
851
|
+
<td rowspan="1" colSpan="1" >修改社群权限组</td>
|
|
852
|
+
</tr>
|
|
853
|
+
|
|
854
|
+
<tr>
|
|
855
|
+
<td rowspan="1" colSpan="1" >[getJoinedPermissionGroupListInCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a4cb129d433f107489f11e99354643d76)</td>
|
|
856
|
+
|
|
857
|
+
<td rowspan="1" colSpan="1" >获取已加入的社群权限组列表</td>
|
|
858
|
+
</tr>
|
|
859
|
+
|
|
860
|
+
<tr>
|
|
861
|
+
<td rowspan="1" colSpan="1" >[getPermissionGroupListInCommunity](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a63b062f9695c3d6b0fe8129b6811b1e7)</td>
|
|
862
|
+
|
|
863
|
+
<td rowspan="1" colSpan="1" >获取社群权限组列表</td>
|
|
864
|
+
</tr>
|
|
865
|
+
|
|
866
|
+
<tr>
|
|
867
|
+
<td rowspan="1" colSpan="1" >[addCommunityMembersToPermissionGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a581cfc8070a6c6aa37bf54c0f496a2c4)</td>
|
|
868
|
+
|
|
869
|
+
<td rowspan="1" colSpan="1" >向社群权限组添加成员</td>
|
|
870
|
+
</tr>
|
|
871
|
+
|
|
872
|
+
<tr>
|
|
873
|
+
<td rowspan="1" colSpan="1" >[removeCommunityMembersFromPermissionGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a266ab0a4ca2bf77daf84b96dadea5e93)</td>
|
|
874
|
+
|
|
875
|
+
<td rowspan="1" colSpan="1" >从社群权限组删除成员</td>
|
|
876
|
+
</tr>
|
|
877
|
+
|
|
878
|
+
<tr>
|
|
879
|
+
<td rowspan="1" colSpan="1" >[getCommunityMemberListInPermissionGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#ae9099678b494dd0c442e0075b3abab99)</td>
|
|
880
|
+
|
|
881
|
+
<td rowspan="1" colSpan="1" >获取社群权限组成员列表</td>
|
|
882
|
+
</tr>
|
|
883
|
+
|
|
884
|
+
<tr>
|
|
885
|
+
<td rowspan="1" colSpan="1" >[addTopicPermissionToPermissionGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a538a722d29fa2e0f2841b70cb6e050f4)</td>
|
|
886
|
+
|
|
887
|
+
<td rowspan="1" colSpan="1" >向权限组添加话题权限</td>
|
|
888
|
+
</tr>
|
|
889
|
+
|
|
890
|
+
<tr>
|
|
891
|
+
<td rowspan="1" colSpan="1" >[deleteTopicPermissionFromPermissionGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a62e4be9f54405ddb0f16a158fb1b410f)</td>
|
|
892
|
+
|
|
893
|
+
<td rowspan="1" colSpan="1" >从权限组中删除话题权限</td>
|
|
894
|
+
</tr>
|
|
895
|
+
|
|
896
|
+
<tr>
|
|
897
|
+
<td rowspan="1" colSpan="1" >[modifyTopicPermissionInPermissionGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#acad1c1d96c6860cf2a29643fbe8b6c7f)</td>
|
|
898
|
+
|
|
899
|
+
<td rowspan="1" colSpan="1" >修改权限组中的话题权限</td>
|
|
900
|
+
</tr>
|
|
901
|
+
|
|
902
|
+
<tr>
|
|
903
|
+
<td rowspan="1" colSpan="1" >[getTopicPermissionInPermissionGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Community_08.html#a7370db7c5f09c8106cd27c142d386262)</td>
|
|
904
|
+
|
|
905
|
+
<td rowspan="1" colSpan="1" >获取权限组中的话题权限</td>
|
|
906
|
+
</tr>
|
|
907
|
+
</table>
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
## 会话列表相关接口
|
|
911
|
+
|
|
912
|
+
会话列表,即登录微信或 QQ 后首屏看到的列表,包含会话节点、会话名称、群名称、最后一条消息以及未读消息数等元素。
|
|
913
|
+
<table>
|
|
914
|
+
<tr>
|
|
915
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
916
|
+
|
|
917
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
918
|
+
</tr>
|
|
919
|
+
|
|
920
|
+
<tr>
|
|
921
|
+
<td rowspan="1" colSpan="1" >[setConversationListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a95bac7330779a8a970fc7689e436257f)</td>
|
|
922
|
+
|
|
923
|
+
<td rowspan="1" colSpan="1" >设置会话监听器 (待废弃接口,请使用 addConversationListener 和 removeConversationListener 接口)</td>
|
|
924
|
+
</tr>
|
|
925
|
+
|
|
926
|
+
<tr>
|
|
927
|
+
<td rowspan="1" colSpan="1" >[addConversationListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a39b4f352f1740171fb56143149201cd9)</td>
|
|
928
|
+
|
|
929
|
+
<td rowspan="1" colSpan="1" >添加会话监听器</td>
|
|
930
|
+
</tr>
|
|
931
|
+
|
|
932
|
+
<tr>
|
|
933
|
+
<td rowspan="1" colSpan="1" >[removeConversationListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#ab9e1627559fb4259228b4e547b192c83)</td>
|
|
934
|
+
|
|
935
|
+
<td rowspan="1" colSpan="1" >移除会话监听器</td>
|
|
936
|
+
</tr>
|
|
937
|
+
|
|
938
|
+
<tr>
|
|
939
|
+
<td rowspan="1" colSpan="1" >[getConversationList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#ab1f5e86e270b122cb725266d234d9dd5)</td>
|
|
940
|
+
|
|
941
|
+
<td rowspan="1" colSpan="1" >获取会话列表</td>
|
|
942
|
+
</tr>
|
|
943
|
+
|
|
944
|
+
<tr>
|
|
945
|
+
<td rowspan="1" colSpan="1" >[getConversation](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#ad4b7b80fbe0cff25027371b416ede9f9)</td>
|
|
946
|
+
|
|
947
|
+
<td rowspan="1" colSpan="1" >获取指定单个会话</td>
|
|
948
|
+
</tr>
|
|
949
|
+
|
|
950
|
+
<tr>
|
|
951
|
+
<td rowspan="1" colSpan="1" >[getConversationList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#af94d9d44e90da448a395e6d92b4e512e)</td>
|
|
952
|
+
|
|
953
|
+
<td rowspan="1" colSpan="1" >获取指定多个会话</td>
|
|
954
|
+
</tr>
|
|
955
|
+
|
|
956
|
+
<tr>
|
|
957
|
+
<td rowspan="1" colSpan="1" >[ getConversationListByFilter](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#ac1b77eedff7f2f8742a873cf766daec9)</td>
|
|
958
|
+
|
|
959
|
+
<td rowspan="1" colSpan="1" >获取会话高级接口,可以指定会话类型、标记类型、分组名等</td>
|
|
960
|
+
</tr>
|
|
961
|
+
|
|
962
|
+
<tr>
|
|
963
|
+
<td rowspan="1" colSpan="1" >[deleteConversation](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a142f5289632f29a603937f1d770748c6)</td>
|
|
964
|
+
|
|
965
|
+
<td rowspan="1" colSpan="1" >删除会话</td>
|
|
966
|
+
</tr>
|
|
967
|
+
|
|
968
|
+
<tr>
|
|
969
|
+
<td rowspan="1" colSpan="1" >[deleteConversationList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a4a82f8f6e9e6b56f14e57d096b16c73c)</td>
|
|
970
|
+
|
|
971
|
+
<td rowspan="1" colSpan="1" >删除会话列表</td>
|
|
972
|
+
</tr>
|
|
973
|
+
|
|
974
|
+
<tr>
|
|
975
|
+
<td rowspan="1" colSpan="1" >[setConversationDraft](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a462cd163c03cdce230ed3647b414382b)</td>
|
|
976
|
+
|
|
977
|
+
<td rowspan="1" colSpan="1" >设置会话草稿</td>
|
|
978
|
+
</tr>
|
|
979
|
+
|
|
980
|
+
<tr>
|
|
981
|
+
<td rowspan="1" colSpan="1" >[setConversationCustomData](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#af82623b98c07f36767a47c59f5a23927)</td>
|
|
982
|
+
|
|
983
|
+
<td rowspan="1" colSpan="1" >设置会话自定义数据</td>
|
|
984
|
+
</tr>
|
|
985
|
+
|
|
986
|
+
<tr>
|
|
987
|
+
<td rowspan="1" colSpan="1" >[pinConversation](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a06cefb398f5a327dff4cefe6fb18c5b8)</td>
|
|
988
|
+
|
|
989
|
+
<td rowspan="1" colSpan="1" >置顶会话</td>
|
|
990
|
+
</tr>
|
|
991
|
+
|
|
992
|
+
<tr>
|
|
993
|
+
<td rowspan="1" colSpan="1" >[markConversation](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a77c02a146f774979e1e04d7334cd2d06)</td>
|
|
994
|
+
|
|
995
|
+
<td rowspan="1" colSpan="1" >标记会话</td>
|
|
996
|
+
</tr>
|
|
997
|
+
|
|
998
|
+
<tr>
|
|
999
|
+
<td rowspan="1" colSpan="1" >[getTotalUnreadMessageCount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#abe76208f616713a09df582a6c1665d38)</td>
|
|
1000
|
+
|
|
1001
|
+
<td rowspan="1" colSpan="1" >获取会话总未读数</td>
|
|
1002
|
+
</tr>
|
|
1003
|
+
|
|
1004
|
+
<tr>
|
|
1005
|
+
<td rowspan="1" colSpan="1" >[getUnreadMessageCountByFilter](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a6ddcab75125f4b09e8bfc4521817d09d)</td>
|
|
1006
|
+
|
|
1007
|
+
<td rowspan="1" colSpan="1" >获取根据 filter 过滤的会话未读总数</td>
|
|
1008
|
+
</tr>
|
|
1009
|
+
|
|
1010
|
+
<tr>
|
|
1011
|
+
<td rowspan="1" colSpan="1" >[subscribeUnreadMessageCountByFilter](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a123e1e578a92fa68b7087857c816fbd2)</td>
|
|
1012
|
+
|
|
1013
|
+
<td rowspan="1" colSpan="1" >注册监听指定 filter 的会话未读总数变化</td>
|
|
1014
|
+
</tr>
|
|
1015
|
+
|
|
1016
|
+
<tr>
|
|
1017
|
+
<td rowspan="1" colSpan="1" >[unsubscribeUnreadMessageCountByFilter](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#ae87d91af763df945ed4750cbda079bf2)</td>
|
|
1018
|
+
|
|
1019
|
+
<td rowspan="1" colSpan="1" >取消监听指定 filter 的会话未读总数变化</td>
|
|
1020
|
+
</tr>
|
|
1021
|
+
|
|
1022
|
+
<tr>
|
|
1023
|
+
<td rowspan="1" colSpan="1" >[cleanConversationUnreadMessageCount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a820c2f598f7554428fb980df3f7357f0)</td>
|
|
1024
|
+
|
|
1025
|
+
<td rowspan="1" colSpan="1" >清理会话的未读消息计数</td>
|
|
1026
|
+
</tr>
|
|
1027
|
+
|
|
1028
|
+
<tr>
|
|
1029
|
+
<td rowspan="1" colSpan="1" >[ createConversationGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a2f5f4587c881aa26fbdce3b4d469aa0a)</td>
|
|
1030
|
+
|
|
1031
|
+
<td rowspan="1" colSpan="1" >创建会话分组</td>
|
|
1032
|
+
</tr>
|
|
1033
|
+
|
|
1034
|
+
<tr>
|
|
1035
|
+
<td rowspan="1" colSpan="1" >[ getConversationGroupList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a037b0973be9feef207a64f2e043792ab)</td>
|
|
1036
|
+
|
|
1037
|
+
<td rowspan="1" colSpan="1" >获取会话分组列表</td>
|
|
1038
|
+
</tr>
|
|
1039
|
+
|
|
1040
|
+
<tr>
|
|
1041
|
+
<td rowspan="1" colSpan="1" >[ deleteConversationGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#aa7b91ded9e451335bc931525839ce736)</td>
|
|
1042
|
+
|
|
1043
|
+
<td rowspan="1" colSpan="1" >删除会话分组</td>
|
|
1044
|
+
</tr>
|
|
1045
|
+
|
|
1046
|
+
<tr>
|
|
1047
|
+
<td rowspan="1" colSpan="1" >[ renameConversationGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a1a9492196c94450b2992079cffab96a6)</td>
|
|
1048
|
+
|
|
1049
|
+
<td rowspan="1" colSpan="1" >重命名会话分组</td>
|
|
1050
|
+
</tr>
|
|
1051
|
+
|
|
1052
|
+
<tr>
|
|
1053
|
+
<td rowspan="1" colSpan="1" >[ addConversationsToGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a37c78d27216882504d2710a066478db5)</td>
|
|
1054
|
+
|
|
1055
|
+
<td rowspan="1" colSpan="1" >添加会话到一个会话分组</td>
|
|
1056
|
+
</tr>
|
|
1057
|
+
|
|
1058
|
+
<tr>
|
|
1059
|
+
<td rowspan="1" colSpan="1" >[ deleteConversationsFromGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Conversation_08.html#a16ee46fa4b7278a0386be9ff633fa552)</td>
|
|
1060
|
+
|
|
1061
|
+
<td rowspan="1" colSpan="1" >从一个会话分组中删除会话</td>
|
|
1062
|
+
</tr>
|
|
1063
|
+
</table>
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
## 用户资料相关接口
|
|
1067
|
+
|
|
1068
|
+
包含查询用户资料、修改个人资料以及屏蔽某人消息(即把某用户加入黑名单中)的相关接口。
|
|
1069
|
+
<table>
|
|
1070
|
+
<tr>
|
|
1071
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
1072
|
+
|
|
1073
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
1074
|
+
</tr>
|
|
1075
|
+
|
|
1076
|
+
<tr>
|
|
1077
|
+
<td rowspan="1" colSpan="1" >[getUsersInfo](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#ac638c1dd6ec1e5204637e4b87129cd38)</td>
|
|
1078
|
+
|
|
1079
|
+
<td rowspan="1" colSpan="1" >获取用户资料</td>
|
|
1080
|
+
</tr>
|
|
1081
|
+
|
|
1082
|
+
<tr>
|
|
1083
|
+
<td rowspan="1" colSpan="1" >[setSelfInfo](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a328a0d2d07e8d34e12effb73937c3437)</td>
|
|
1084
|
+
|
|
1085
|
+
<td rowspan="1" colSpan="1" >修改个人资料</td>
|
|
1086
|
+
</tr>
|
|
1087
|
+
|
|
1088
|
+
<tr>
|
|
1089
|
+
<td rowspan="1" colSpan="1" >[subscribeUserInfo](https://im.sdk.qcloud.com/doc/zh-cn/classcom_1_1tencent_1_1imsdk_1_1v2_1_1V2TIMManager.html#a4d14dda5e99d821c84dea4ae25e403af)</td>
|
|
1090
|
+
|
|
1091
|
+
<td rowspan="1" colSpan="1" >订阅用户资料</td>
|
|
1092
|
+
</tr>
|
|
1093
|
+
|
|
1094
|
+
<tr>
|
|
1095
|
+
<td rowspan="1" colSpan="1" >[unsubscribeUserInfo](https://im.sdk.qcloud.com/doc/zh-cn/classcom_1_1tencent_1_1imsdk_1_1v2_1_1V2TIMManager.html#af42e383f564f7d5bb9b4d39a3e00d4d9)</td>
|
|
1096
|
+
|
|
1097
|
+
<td rowspan="1" colSpan="1" >取消订阅用户资料</td>
|
|
1098
|
+
</tr>
|
|
1099
|
+
|
|
1100
|
+
<tr>
|
|
1101
|
+
<td rowspan="1" colSpan="1" >[getUserStatus](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#abe44a4c51c686248d483674d77d71053)</td>
|
|
1102
|
+
|
|
1103
|
+
<td rowspan="1" colSpan="1" >订阅用户资料</td>
|
|
1104
|
+
</tr>
|
|
1105
|
+
|
|
1106
|
+
<tr>
|
|
1107
|
+
<td rowspan="1" colSpan="1" >[setSelfStatus](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a7d771431a61635888bdc4def438c4328)</td>
|
|
1108
|
+
|
|
1109
|
+
<td rowspan="1" colSpan="1" >取消订阅用户资料</td>
|
|
1110
|
+
</tr>
|
|
1111
|
+
|
|
1112
|
+
<tr>
|
|
1113
|
+
<td rowspan="1" colSpan="1" >[subscribeUserStatus](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a20e6cbe409549e0d2ff62be76914e0b3)</td>
|
|
1114
|
+
|
|
1115
|
+
<td rowspan="1" colSpan="1" >订阅用户状态</td>
|
|
1116
|
+
</tr>
|
|
1117
|
+
|
|
1118
|
+
<tr>
|
|
1119
|
+
<td rowspan="1" colSpan="1" >[unsubscribeUserStatus](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a3780734bb50398ebe65155c3223542f0)</td>
|
|
1120
|
+
|
|
1121
|
+
<td rowspan="1" colSpan="1" >取消订阅用户状态</td>
|
|
1122
|
+
</tr>
|
|
1123
|
+
|
|
1124
|
+
<tr>
|
|
1125
|
+
<td rowspan="1" colSpan="1" >[searchUsers](https://im.sdk.qcloud.com/doc/zh-cn/interfaceV2TIMManager.html#a978df4d80011f4da38dc80f8ab217f48)</td>
|
|
1126
|
+
|
|
1127
|
+
<td rowspan="1" colSpan="1" >搜索云端用户资料</td>
|
|
1128
|
+
</tr>
|
|
1129
|
+
|
|
1130
|
+
<tr>
|
|
1131
|
+
<td rowspan="1" colSpan="1" >[addToBlackList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a67d998da5085b5004bb6aa8d4322022c)</td>
|
|
1132
|
+
|
|
1133
|
+
<td rowspan="1" colSpan="1" >屏蔽某人的消息(添加该用户到黑名单中)</td>
|
|
1134
|
+
</tr>
|
|
1135
|
+
|
|
1136
|
+
<tr>
|
|
1137
|
+
<td rowspan="1" colSpan="1" >[deleteFromBlackList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#aa7e69a67185eaca658ba429cf6309a5f)</td>
|
|
1138
|
+
|
|
1139
|
+
<td rowspan="1" colSpan="1" >取消某人的消息屏蔽(把该用户从黑名单中移除)</td>
|
|
1140
|
+
</tr>
|
|
1141
|
+
|
|
1142
|
+
<tr>
|
|
1143
|
+
<td rowspan="1" colSpan="1" >[getBlackList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a0d854d64c8ae936014a8424d55508fa3)</td>
|
|
1144
|
+
|
|
1145
|
+
<td rowspan="1" colSpan="1" >获取黑名单列表</td>
|
|
1146
|
+
</tr>
|
|
1147
|
+
</table>
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
## 离线推送相关接口
|
|
1151
|
+
|
|
1152
|
+
如果想要在 App 切后台时依然能够实时收到 IM 消息,可以使用离线推送服务,详细配置请参考 [离线推送](https://cloud.tencent.com/document/product/269/75429)。
|
|
1153
|
+
<table>
|
|
1154
|
+
<tr>
|
|
1155
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
1156
|
+
|
|
1157
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
1158
|
+
</tr>
|
|
1159
|
+
|
|
1160
|
+
<tr>
|
|
1161
|
+
<td rowspan="1" colSpan="1" >[setAPNSListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07APNS_08.html#a62e1694cf9e1d65b76f90064cbcbb683)</td>
|
|
1162
|
+
|
|
1163
|
+
<td rowspan="1" colSpan="1" >设置 APNs 监听</td>
|
|
1164
|
+
</tr>
|
|
1165
|
+
|
|
1166
|
+
<tr>
|
|
1167
|
+
<td rowspan="1" colSpan="1" >[setAPNS](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07APNS_08.html#a73bf19c0c019e5e27ec441bc753daa9e)</td>
|
|
1168
|
+
|
|
1169
|
+
<td rowspan="1" colSpan="1" >配置 APNS 推送信息</td>
|
|
1170
|
+
</tr>
|
|
1171
|
+
|
|
1172
|
+
<tr>
|
|
1173
|
+
<td rowspan="1" colSpan="1" >[setVOIP](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07VOIP_08.html#a0bd652eed597771ca1381d0d6ea67704)</td>
|
|
1174
|
+
|
|
1175
|
+
<td rowspan="1" colSpan="1" >配置 VOIP 推送信息</td>
|
|
1176
|
+
</tr>
|
|
1177
|
+
</table>
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
## 好友管理相关接口
|
|
1181
|
+
|
|
1182
|
+
腾讯云 IM 在收发消息时默认不检查是不是好友关系,您可以在 [**控制台**](https://console.cloud.tencent.com/im) >**功能配置**>**登录与消息**>**好友关系检查**中开启"发送单聊消息检查关系链"开关,并使用如下接口增删好友和管理好友列表。
|
|
1183
|
+
<table>
|
|
1184
|
+
<tr>
|
|
1185
|
+
<td rowspan="1" colSpan="1" >API</td>
|
|
1186
|
+
|
|
1187
|
+
<td rowspan="1" colSpan="1" >描述</td>
|
|
1188
|
+
</tr>
|
|
1189
|
+
|
|
1190
|
+
<tr>
|
|
1191
|
+
<td rowspan="1" colSpan="1" >[setFriendListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#acd403f586f3df84f56b1b757efb2d443)</td>
|
|
1192
|
+
|
|
1193
|
+
<td rowspan="1" colSpan="1" >设置关系链与好友资料监听器(待废弃接口,请使用 addFriendListener 和 removeFriendListener 接口)</td>
|
|
1194
|
+
</tr>
|
|
1195
|
+
|
|
1196
|
+
<tr>
|
|
1197
|
+
<td rowspan="1" colSpan="1" >[addFriendListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a1de011b63b3c20b1be519dc7ba124704)</td>
|
|
1198
|
+
|
|
1199
|
+
<td rowspan="1" colSpan="1" >添加关系链监听器</td>
|
|
1200
|
+
</tr>
|
|
1201
|
+
|
|
1202
|
+
<tr>
|
|
1203
|
+
<td rowspan="1" colSpan="1" >[removeFriendListener](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#aed40ccbbc4e15be79154077a6d3ec085)</td>
|
|
1204
|
+
|
|
1205
|
+
<td rowspan="1" colSpan="1" >移除关系链监听器</td>
|
|
1206
|
+
</tr>
|
|
1207
|
+
|
|
1208
|
+
<tr>
|
|
1209
|
+
<td rowspan="1" colSpan="1" >[getFriendList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a81131d76924a03ec2b593addd6e4e101)</td>
|
|
1210
|
+
|
|
1211
|
+
<td rowspan="1" colSpan="1" >获取好友列表</td>
|
|
1212
|
+
</tr>
|
|
1213
|
+
|
|
1214
|
+
<tr>
|
|
1215
|
+
<td rowspan="1" colSpan="1" >[getFriendsInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a39f6752da11b595e4a5b6dcb0eb6a584)</td>
|
|
1216
|
+
|
|
1217
|
+
<td rowspan="1" colSpan="1" >获取指定好友资料</td>
|
|
1218
|
+
</tr>
|
|
1219
|
+
|
|
1220
|
+
<tr>
|
|
1221
|
+
<td rowspan="1" colSpan="1" >[setFriendInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#ac258312c000c1af69fcf51dd6898b74b)</td>
|
|
1222
|
+
|
|
1223
|
+
<td rowspan="1" colSpan="1" >设置指定好友资料</td>
|
|
1224
|
+
</tr>
|
|
1225
|
+
|
|
1226
|
+
<tr>
|
|
1227
|
+
<td rowspan="1" colSpan="1" >[searchFriends](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a9a036dcc1bd65474a3d2e90f2bb6b9c6)</td>
|
|
1228
|
+
|
|
1229
|
+
<td rowspan="1" colSpan="1" >搜索好友列表</td>
|
|
1230
|
+
</tr>
|
|
1231
|
+
|
|
1232
|
+
<tr>
|
|
1233
|
+
<td rowspan="1" colSpan="1" >[addFriend](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#ac1ea1c7de2bfc2b0a25e5f6b3192e304)</td>
|
|
1234
|
+
|
|
1235
|
+
<td rowspan="1" colSpan="1" >添加好友</td>
|
|
1236
|
+
</tr>
|
|
1237
|
+
|
|
1238
|
+
<tr>
|
|
1239
|
+
<td rowspan="1" colSpan="1" >[deleteFromFriendList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#af967134fb177b32d4060fedf3663ace3)</td>
|
|
1240
|
+
|
|
1241
|
+
<td rowspan="1" colSpan="1" >删除好友</td>
|
|
1242
|
+
</tr>
|
|
1243
|
+
|
|
1244
|
+
<tr>
|
|
1245
|
+
<td rowspan="1" colSpan="1" >[checkFriend](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#aad1b09fab6523d9a36147b4ed4efac67)</td>
|
|
1246
|
+
|
|
1247
|
+
<td rowspan="1" colSpan="1" >检查指定用户的好友关系</td>
|
|
1248
|
+
</tr>
|
|
1249
|
+
|
|
1250
|
+
<tr>
|
|
1251
|
+
<td rowspan="1" colSpan="1" >[getFriendApplicationList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#acda7968f1e9adc12261a7e533d709a1c)</td>
|
|
1252
|
+
|
|
1253
|
+
<td rowspan="1" colSpan="1" >获取好友申请列表</td>
|
|
1254
|
+
</tr>
|
|
1255
|
+
|
|
1256
|
+
<tr>
|
|
1257
|
+
<td rowspan="1" colSpan="1" >[acceptFriendApplication](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a51b913927028025e2e450e6e8ce848c0)</td>
|
|
1258
|
+
|
|
1259
|
+
<td rowspan="1" colSpan="1" >同意好友申请</td>
|
|
1260
|
+
</tr>
|
|
1261
|
+
|
|
1262
|
+
<tr>
|
|
1263
|
+
<td rowspan="1" colSpan="1" >[refuseFriendApplication](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a406b964a6513219cfe4803f87f0f00f8)</td>
|
|
1264
|
+
|
|
1265
|
+
<td rowspan="1" colSpan="1" >拒绝好友申请</td>
|
|
1266
|
+
</tr>
|
|
1267
|
+
|
|
1268
|
+
<tr>
|
|
1269
|
+
<td rowspan="1" colSpan="1" >[deleteFriendApplication](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a363e0622f653694999293c595d552896)</td>
|
|
1270
|
+
|
|
1271
|
+
<td rowspan="1" colSpan="1" >删除好友申请</td>
|
|
1272
|
+
</tr>
|
|
1273
|
+
|
|
1274
|
+
<tr>
|
|
1275
|
+
<td rowspan="1" colSpan="1" >[setFriendApplicationRead](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#ad46c70c18b8f69bf272cbf3466477a85)</td>
|
|
1276
|
+
|
|
1277
|
+
<td rowspan="1" colSpan="1" >设置好友申请已读</td>
|
|
1278
|
+
</tr>
|
|
1279
|
+
|
|
1280
|
+
<tr>
|
|
1281
|
+
<td rowspan="1" colSpan="1" >[createFriendGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a8b33edab15ae7d179e4e2d885e7d2b7d)</td>
|
|
1282
|
+
|
|
1283
|
+
<td rowspan="1" colSpan="1" >新建好友分组</td>
|
|
1284
|
+
</tr>
|
|
1285
|
+
|
|
1286
|
+
<tr>
|
|
1287
|
+
<td rowspan="1" colSpan="1" >[getFriendGroups](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a63f3eaae567586077d5a8d27c31e2229)</td>
|
|
1288
|
+
|
|
1289
|
+
<td rowspan="1" colSpan="1" >获取分组信息</td>
|
|
1290
|
+
</tr>
|
|
1291
|
+
|
|
1292
|
+
<tr>
|
|
1293
|
+
<td rowspan="1" colSpan="1" >[deleteFriendGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a2dc49f2abb1238fc2d47ce6d4f14c1e7)</td>
|
|
1294
|
+
|
|
1295
|
+
<td rowspan="1" colSpan="1" >删除好友分组</td>
|
|
1296
|
+
</tr>
|
|
1297
|
+
|
|
1298
|
+
<tr>
|
|
1299
|
+
<td rowspan="1" colSpan="1" >[renameFriendGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a93f6ba132d9706db7c74daff97a2abd0)</td>
|
|
1300
|
+
|
|
1301
|
+
<td rowspan="1" colSpan="1" >修改好友分组的名称</td>
|
|
1302
|
+
</tr>
|
|
1303
|
+
|
|
1304
|
+
<tr>
|
|
1305
|
+
<td rowspan="1" colSpan="1" >[addFriendsToFriendGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a0265241c39600c390406ca1f8f6ff75d)</td>
|
|
1306
|
+
|
|
1307
|
+
<td rowspan="1" colSpan="1" >添加好友到一个好友分组</td>
|
|
1308
|
+
</tr>
|
|
1309
|
+
|
|
1310
|
+
<tr>
|
|
1311
|
+
<td rowspan="1" colSpan="1" >[deleteFriendsFromFriendGroup](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a4a14a878816c8d6a20981d1903fcf359)</td>
|
|
1312
|
+
|
|
1313
|
+
<td rowspan="1" colSpan="1" >从好友分组中删除好友</td>
|
|
1314
|
+
</tr>
|
|
1315
|
+
|
|
1316
|
+
<tr>
|
|
1317
|
+
<td rowspan="1" colSpan="1" >[subscribeOfficialAccount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a0209825847b854bafdd337aab3c43f02)</td>
|
|
1318
|
+
|
|
1319
|
+
<td rowspan="1" colSpan="1" >订阅公众号</td>
|
|
1320
|
+
</tr>
|
|
1321
|
+
|
|
1322
|
+
<tr>
|
|
1323
|
+
<td rowspan="1" colSpan="1" >[unsubscribeOfficialAccount](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a44a804583ee8dd3eac2a6cab7c8d5fe1)</td>
|
|
1324
|
+
|
|
1325
|
+
<td rowspan="1" colSpan="1" >取消订阅公众号</td>
|
|
1326
|
+
</tr>
|
|
1327
|
+
|
|
1328
|
+
<tr>
|
|
1329
|
+
<td rowspan="1" colSpan="1" >[getOfficialAccountsInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#acdf22b26fe5b6d40b2d7d411a361f904)</td>
|
|
1330
|
+
|
|
1331
|
+
<td rowspan="1" colSpan="1" >获取公众号列表</td>
|
|
1332
|
+
</tr>
|
|
1333
|
+
|
|
1334
|
+
<tr>
|
|
1335
|
+
<td rowspan="1" colSpan="1" >[followUser](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a7cde546df61efd1327db38c37f905d31)</td>
|
|
1336
|
+
|
|
1337
|
+
<td rowspan="1" colSpan="1" >关注用户</td>
|
|
1338
|
+
</tr>
|
|
1339
|
+
|
|
1340
|
+
<tr>
|
|
1341
|
+
<td rowspan="1" colSpan="1" >[unfollowUser](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#ad15c2c5f7ba04f58046ddc23fa84b697)</td>
|
|
1342
|
+
|
|
1343
|
+
<td rowspan="1" colSpan="1" >取消关注用户</td>
|
|
1344
|
+
</tr>
|
|
1345
|
+
|
|
1346
|
+
<tr>
|
|
1347
|
+
<td rowspan="1" colSpan="1" >[getMyFollowingList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#aa4f6480569a8b98066e551ae2d9cf0cf)</td>
|
|
1348
|
+
|
|
1349
|
+
<td rowspan="1" colSpan="1" >获取我的关注列表</td>
|
|
1350
|
+
</tr>
|
|
1351
|
+
|
|
1352
|
+
<tr>
|
|
1353
|
+
<td rowspan="1" colSpan="1" >[getMutualFollowersList](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#ada4fc3b4b1e9a044e73a4b2330d93100)</td>
|
|
1354
|
+
|
|
1355
|
+
<td rowspan="1" colSpan="1" >获取我的互关列表</td>
|
|
1356
|
+
</tr>
|
|
1357
|
+
|
|
1358
|
+
<tr>
|
|
1359
|
+
<td rowspan="1" colSpan="1" >[getUserFollowInfo](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a6a01145bcdfba7fe49d7882fac047b29)</td>
|
|
1360
|
+
|
|
1361
|
+
<td rowspan="1" colSpan="1" >获取指定用户的 关注/粉丝/互关 数量信息</td>
|
|
1362
|
+
</tr>
|
|
1363
|
+
|
|
1364
|
+
<tr>
|
|
1365
|
+
<td rowspan="1" colSpan="1" >[checkFollowType](https://im.sdk.qcloud.com/doc/zh-cn/categoryV2TIMManager_07Friendship_08.html#a6a01145bcdfba7fe49d7882fac047b29)</td>
|
|
1366
|
+
|
|
1367
|
+
<td rowspan="1" colSpan="1" >检查指定用户的关注类型</td>
|
|
1368
|
+
</tr>
|
|
1369
|
+
</table>
|
|
1370
|
+
|
|
1371
|
+
|