Group Type ID | Is this REST API supported |
Private | Not Supported, same as the Work (Friends Work Group) in the new version. |
Public | Not Supported. |
ChatRoom | Not Supported, same as the Meeting (Temporary Meeting Group) in the new version. |
AVChatRoom | Not 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.comSingapore: adminapisgp.im.qcloud.comSeoul: adminapikr.im.qcloud.comTokyo: adminapijpn.im.qcloud.comFrankfurt: adminapiger.im.qcloud.comSilicon Valley: adminapiusa.im.qcloud.comJakarta: 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. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback