Group Type ID | Is this REST API supported |
Private | Supported, same as the Work (Friends Work Group) in the new version |
Public | Supported |
ChatRoom | Supported, same as the Meeting (Temporary Meeting Group) in the new version |
AVChatRoom | Supported |
Community (Community) | Supported |
https://xxxxxx/v4/million_group_open_http_svc/get_online_member_num?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Parameter | Description |
xxxxxx | The dedicated domain 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/million_group_open_http_svc/get_online_member_num | Request API |
sdkappid | SDKAppID assigned by the Chat console when an app is created |
identifier | |
usersig | The signature generated by the App Administrator Account. For details on the procedure, see Generate UserSig |
random | A random 32-bit unsigned integer ranging from 0 to 4294967295 |
contenttype | The request format is a fixed value of json |
{"GroupId":"@TGS#_@TGS#cQVLVHIM62CJ"}
Field | Type | Attribute | Description |
GroupId | String | Required | Group ID to operate |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"OnlineMemberNum":1000 // Number of online members}
Field | Type | Description |
ActionStatus | String | Result of request processing: OK: Indicates successful processing FAIL: Indicates failure |
ErrorCode | Integer | Error codes: 0: Indicates success Non-zero: Indicates failure |
ErrorInfo | String | Error message |
OnlineMemberNum | Integer | The number of online members in this group |
Error code | Description of Meaning |
10002 | System error, please try again or contact technical support |
10003 | The request command is illegal, please try again or contact technical support |
10004 | Invalid parameter. Please check whether the mandatory fields are filled or if the filled fields meet the protocol requirements based on the ErrorInfo field in the response packet |
10007 | Insufficient permissions, non-Community types do not support obtaining the number of people online |
10010 | The group does not exist, or it once existed but has now been dissolved |
10015 | Group ID is invalid, please check if the Group ID is filled correctly |
문제 해결에 도움이 되었나요?