https://xxxxxx/v4/timpush/get_attr_name?usersig=xxx&identifier=admin&sdkappid=88888888&random=99999999&contenttype=json
Parameter | Description |
https | Request protocol is HTTPS Request method is 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_name | 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 |
{}
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"AttrNames": {"0": "sex","1": "city","2": "country"},"AttrTypes": {"0": 0,"1": 0,"2": 1 // Number key 2 corresponds to the attribute "country", which can only be set by account type 1 (the RegistrationID is automatically generated when the push service registration is succ}}
Field | Type | Description |
ActionStatus | String | Processed Request Result: OK: Indicates successful processing. FAIL: Indicates failure. |
ErrorCode | Integer | Error code. |
ErrorInfo | String | Error message. |
AttrNames | Object | Contains multiple key-value pairs. Each pair represents the name corresponding to a specific attribute. For example, "0":"xxx" indicates that the name of attribute 0 is xxx |
AttrTypes | Object | Containing multiple key-value pairs. Each key-value pair indicates the account type corresponding to the nth attribute. "0": 0 means the account type of attribute No. 0 is 0 (IM account type). "0": 1 means the account type of attribute No. 0 is 1 (RegistrationID automatically generated when the push service registration is successful). |
Error code | Description |
90001 | Failed to parse the JSON format. Please ensure the request packet conforms to the JSON specification. |
90009 | The request requires App Administrator permissions. |
90018 | The number of requested accounts exceeds the limit. |
91000 | Internal service error, please try again. |
Feedback