https://xxxxxx/v4/recentcontact/get_contact_group?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Parameter | Description |
xxxxxx | Domain name corresponding to 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/recentcontact/get_contact_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, which should always be json. |
{"From_Account": "user_0001","StartIndex": 0}
Field | Type | Required | Description |
From_Account | String | Yes | Fill in UserID, request to get conversation group/mark for this user. |
StartIndex | Integer | Yes | Start index for the current page pulling. Enter 0 for the first pull and enter the value of NextStartIndex returned last time. |
{"ContactItem": [{"Type": 1,"To_Account": "user_0002","StandardMark": "111001","ContactGroupId": [1,2],"Timestamp": 1670843110},{"Type": 2,"ToGroupId": "@TGS#1B2AUI7RZ","StandardMark": "111001","CustomMark": "abcd","Timestamp": 1672998266}],"GroupItem": [{"GroupName": "group_0001","GroupId": 1},{"GroupName": "group_0002","GroupId": 2}],"CompleteFlag": 1,"NextStartIndex": 0,"ActionStatus": "OK","ErrorCode": 0,"ErrorInfo": ""}
Field | Type | Description |
ContactItem | Integer | Conversation object. |
Type | Integer | Conversation type: 1: One-to-one conversation. 2: Group conversation. |
ToGroupId | String | Assign value only for Group conversation, fill in the group ID of the conversation party. |
To_Account | String | Assign value only for One-to-one conversation, fill in the UserID of the conversation party. |
StandardMark | String | Standard mark capability bit, for example, 011111110. |
CustomMark | String | Custom mark. |
ContactGroupId | Array | Group to which the conversation belongs. |
Timestamp | Integer | Last update timestamp of the conversation group. |
GroupItem | Array | Conversation group object. |
GroupName | String | Conversation group name. |
GroupId | Integer | Conversation group ID. |
CompleteFlag | Integer | Required. |
NextStartIndex | Integer | Required. |
ActionStatus | String | Request result. OK: Successful; FAIL: Failed. |
ErrorCode | Integer | Error code. 0: Successful; other values: Failed. |
ErrorInfo | String | Error information. |
ResultCode, ResultInfo, ErrorCode, and ErrorInfo.Error Code | Description |
50001 | The requested UserID has not been imported to Chat. Please import the UserID first. |
50002 | Incorrect request parameter. Check your request according to the error description. |
50003 | The request requires app admin permissions. |
50004 | Internal server error. Please try again. |
50005 | Network timeout. Try again later. |
フィードバック