https://xxxxxx/v4/timpush/get_attr?usersig=xxx&identifier=admin&sdkappid=88888888&random=99999999&contenttype=json
Parameter | Description |
https | Request protocol: HTTPS. Request method: POST. |
xxxxxx | The dedicated domain corresponding to the country/region of your SDKAppID. 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/timpush/get_attr | Request API. |
usersig | |
identifier | |
sdkappid | SdkAppid assigned by the Instant Messaging Console when an application is created. |
random | A random 32-bit unsigned integer ranging from 0 to 4294967295. |
contenttype | Fixed value: json |
{"To_Account": ["Mary","xiaoming","xiaohua"]}
Field | Type | Attribute | Description |
To_Account | Array | Required | Target User Account List |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"UserAttrs": [{"To_Account": "xiaoming","Attrs": {"sex": "male","city": "ShenZhen"}},{"To_Account": "xiaohua","Attrs": {}}],"ErrorList": [{"ErrorCode": 70107, // account does not exist"To_Account": "Mary"}]}
Field | Type | Description |
ActionStatus | String | Processed Request Result: OK: Indicates successful processing. FAIL: Indicates failure. |
ErrorCode | Integer | Error code. |
ErrorInfo | String | Error message. |
UserAttrs | Object Array | User Tag Content List. |
ErrorList | Object Array | Set attributes. Some users may succeed while others may fail. Error message list for failed accounts. |
Field | Type | Description |
To_Account | String | User account. |
Attrs | Object | Attribute content. Each attribute is a key-value pair, with the key as the attribute name and the value as the attribute value for this user. the user attribute value must not exceed 50 bytes. |
Field | Type | Description |
To_Account | String | Target user account. |
ErrorCode | Integer | Error code. |
ErrorInfo | String | Error description, which may be empty. |
Error code | Description |
90001 | Failed to parse the JSON format. Please ensure the request packet conforms to the JSON specification. |
90018 | The number of requested accounts exceeds the limit. |
91000 | Internal service error, please try again. |
Feedback