https://xxxxxx/v4/all_member_push/im_get_attr?usersig=xxx&identifier=admin&sdkappid=88888888&random=99999999&contenttype=json
Parameter | Description |
https | The request protocol is HTTPS and the request method is POST. |
xxxxxx | Domain name corresponding to 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/all_member_push/im_get_attr | Request API |
usersig | |
identifier | The app administration account. |
sdkappid | SDKAppID assigned by the Chat console when an app is created |
random | A random 32-bit unsigned integer |
contenttype | The value is always json . |
{"To_Account": ["Zhang Xiaohong","Chen Xiaoming","abc"]}
Field | Type | Required | Description |
To_Account | Array | Yes | List of target user accounts |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"UserAttrs": [{"To_Account": "Zhang Xiaohong","Attrs": {"sex" : "Female","city": "New York"}},{"To_Account": "abc","Attrs": {}},{"To_Account": "Chen Xiaoming","Attrs": {"sex": "M","city": "Shenzhen"}}]}
Field | Type | Description |
ActionStatus | String | Request result. OK : Successful. FAIL : Failed |
ErrorCode | Integer | Error code |
ErrorInfo | String | Error information |
UserAttrs | Array | List of user tags |
To_Account | String | User account |
Attrs | Object | Attribute content |
ErrorCode
and ErrorInfo
in the response represent the actual error code and error information. For public error codes (60000 to 79999), please see Error Codes.
The following table describes the error codes specific to this API:Error Code | Description |
90001 | Failed to parse the JSON format. Check whether the JSON request meets JSON specifications. |
90018 | The number of requested accounts exceeds the limit. |
91000 | Internal service error. Try again. |
Was this page helpful?