tencent cloud


Getting Application Attribute Names

Last updated: 2022-04-01 14:59:43

    Feature Description

    This API is used to obtain the App attribute name by the administrator. You need to set the App attribute name before calling the API.

    API Call Description

    The feature is available only to users with Flagship edition accounts. See Configuration Change Ticket to apply for this feature. The feature will be enabled 48 hours after your application is approved.

    Sample request URL


    Request parameters

    Parameter Description
    https The request protocol is HTTPS, and the request method is POST.
    xxxxxx 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
  • India: adminapiind.im.qcloud.com
  • v4/all_member_push/im_get_attr_name Request API
    usersig Signature generated by the app admin account. For more information, see the UserSig backend API.
    identifier The value must be the app admin account.
    sdkappid SDKAppID assigned by the IM console when the app is created
    random A random 32-bit unsigned integer
    contenttype Fixed value: JSON

    Maximum call frequency

    The maximum call frequency is 100 times per second.

    Sample request packet


    Request packet fields


    Sample response packet

    "ActionStatus": "OK",
    "ErrorInfo": "",
    "ErrorCode": 0,
    "AttrNames": {
    "0": "sex",
    "1": "city",
    "2": "member level"

    Response packet fields

    Field Type Description
    ActionStatus String Processing result of the request. Valid values: OK for succeeded, and FAIL for failed
    ErrorCode Integer Error code
    ErrorInfo String Error information
    AttrNames Object A series of key:value pairs. Each key:value pair indicates the corresponding attribute name. For example, "0":"xxx" indicates that the name of attribute 0 is xxx.

    Error Codes

    The HTTP return code for this API is always 200 unless a network error (such as error 502) occurs. The actual error code and error message are indicated by ErrorCode and ErrorInfo in the response packet, respectively. For public error codes 60000 to 79999, see Error Codes.
    The error codes specific to this API are as follows:

    Error Code Description
    90001 Failed to parse the JSON format. To correct it, check whether the JSON request packet meets JSON specifications.
    90009 The request requires the app admin’s permissions.
    90018 The number of accounts requested exceeds the limit.
    91000 An internal service error occurred. To correct it, try again.

    API Debugging Tool

    To debug this API, you can use the online debugging tool for RESTful APIs.


    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support