Query User Information by User ID

Last Updated on : 2023-06-20 15:19:02download

Query the user information by user ID.

API address

GET: /v1.0/iot-02/users/{user_id}

Request parameter

Parameter nameTypeINRequiredDescription
user_idStringuritrueThe user ID.

Return parameter

Parameter nameTypeDescription
resultQueryUserResponse

Description of result

Parameter nameTypeDescription
user_idStringThe user ID.
user_nameStringThe username.
country_codeStringThe country code.

Request example

GET: /v1.0/iot-02/users/bay161xxxxxx050hYaA

Return example

{
    "user_name": "James",
    "country_code": "86",
    "user_id": "bay161xxxxxx050hYaA"
}

Error code

For more information, see error code.