Group Type | Whether This RESTful API Is Supported |
Private | Not supported, same as Work (Work Friend Group) in the new version |
Public | Not supported |
ChatRoom | Not supported, same as Meeting (Temporary Meeting Group) in the new version |
AVChatRoom | Not supported |
Community | Supported |
https://xxxxxx/v4/group_open_http_svc/get_topic_permission_group?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Parameter | Description |
xxxxxx | The dedicated domain name for the country/region where your SDKAppID is located: China: console.tim.qq.com Singapore: adminapisgp.im.qcloud.com Seoul: adminapikr.im.qcloud.com Frankfurt: adminapiger.im.qcloud.com Silicon Valley: adminapiusa.im.qcloud.com Jakarta: adminapiidn.im.qcloud.com |
v4/group_open_http_svc/get_topic_permission_group | Request API |
sdkappid | SDKAppID assigned by the Chat console when an app is created |
identifier | |
usersig | |
random | A random 32-bit unsigned integer ranging from 0 to 4294967295 |
contenttype | Request format fixed value: json |
{"GroupId": "@TGS#_@TGS#cV6IHIIM62C4","PermissionGroupId": "@PMG#_test_permission_group_with_topic"}
{"GroupId": "@TGS#_@TGS#cV6IHIIM62C4","PermissionGroupId": "@PMG#_test_permission_group_with_topic","TopicIdList": ["@TGS#_@TGS#cV6IHIIM62C4@TOPIC#_@TOPIC#cTEJHIIM62CJ"]}
Field | Type | Attribute | Description |
GroupId | String | Required | Group ID |
PermissionGroupId | String | Required | Permission group ID |
TopicIdList | Array | Required | The list of topic permissions to be retrieved. If this parameter is not specified, all topic permissions will be returned. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"TopicPermissionResultList": [{"ErrorCode": 0,"ErrorInfo": "","TopicId": "@TGS#_@TGS#cV6IHIIM62C4@TOPIC#_@TOPIC#cKXPQIIM62CD","Permission": 1234},{"ErrorCode": 0,"ErrorInfo": "","TopicId": "@TGS#_@TGS#cV6IHIIM62C4@TOPIC#_@TOPIC#cTEJHIIM62CJ","Permission": 123456}]}
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"TopicPermissionResultList": [{"ErrorCode": 0,"ErrorInfo": "","TopicId": "@TGS#_@TGS#cV6IHIIM62C4@TOPIC#_@TOPIC#cTEJHIIM62CJ","Permission": 123456}]}
Field | Type | Description |
ActionStatus | String | Result of the request processing OK: Indicates successful processing. FAIL: Indicates failure. |
ErrorCode | Integer | Error code 0: Indicates success. Non-zero: Indicates failure. |
ErrorInfo | String | Error message |
TopicPermissionResultList | Array | The results of obtained topic permissions. Each item represents a result. Only the topic permissions with an ErrorCode of 0 are meaningful. |
Error Code | Description |
10002 | Internal server error. Try again. |
10003 | Illegal request command word |
10004 | Invalid parameter. Check if the request is correct based on the error description. |
10007 | Insufficient operation permissions, such as lacking the permission to create a permission group |
10010 | The group does not exist, or it existed in the past but has now been dissolved. |
10015 | Invalid group ID. Check if the group ID is filled in correctly. |
10016 | The developer backend has denied this operation through third-party callback. |
110006 | The permission group does not exist, or it existed in the past but has now been dissolved. |
110008 | Invalid permission group ID. Check if the permission group ID is filled in correctly. |
110014 | Topic permissions deleted |
문제 해결에 도움이 되었나요?