1. API Description
api request domain name: iot.cloud.tencent.com/api/exploreropen/tokenapi This interface (user_info) is used to retrieve user information.
2. Input Parameter
Name | Type | Required | Description |
AccessToken | String | Yes | Common parameter. AccessToken is used for user authentication of a logged-in user. |
RequestId | String | Yes | Common parameter. Unique request ID can be generated manually. It is recommended to use uuId. Locating issues requires providing the RequestId for the request. |
Action | String | Yes | Common parameter. This interface takes values: AppKugouUserCommand. |
KGCommand | String | Yes | Subcommand. This interface takes values: user_info. |
DeviceId | String | Yes | Device Id consists of product Id and device Name. |
KugouParams | Object of KugouParams_user_info | Yes | Parameters of the subcommand. |
3. Output Parameters
Name | Type | Description |
RequestId | String | Common parameter. Unique request ID, same as the input parameter. Locating issues requires providing the RequestId for the request. |
ErrorCode | Integer | The error code returned by the request, 0 means no error. |
ErrorMsg | String | The returned error information of the request. |
Data | Object of Data_user_info | Returned result |
4. Example
Sample 1
Input Example
POST https://iot.cloud.tencent.com/api/exploreropen/tokenapi HTTP/1.1content-type: application/json{"RequestId": "test0191119-012345","Action": "AppKugouUserCommand","AccessToken":"8b4a70dd16105f******************18edd4e78a3bb8ec","DeviceId":"LAEG4YJE1A/dev01","KGCommand":"user_info","KugouParams":{...}}
Output example: succeed
{"Response": {"Data": {...},"ErrorCode":0,"ErrorMsg":"","RequestId": "keyi20191119-012345"}}
5. Error Code
Error Code | Description |
InternalError | Internal error. |
InvalidParameterValue | Invalid parameter value. |
InvalidParameterValue.InvalidAccessToken | The Token is invalid. |
InvalidParameterValue.InternalRPCError | Call timeout. |
ResourceNotFound | Resource does not exist. |
ResourceNotFound.DeviceNotExist | The device is not created or has been deleted. |
ResourceNotFound.StudioProductNotExist | The product is not created or has been deleted. |
ResourceNotFound.AppNotExists | The application is not created or has been deleted. |
UnsupportedOperation | Unsupported operation. |
UnsupportedOperation.DeviceNotGateway | Not a gateway device. |
UnsupportedOperation.NotBindVirtualDevice | Unable to bind virtual device. |
UnsupportedOperation.DeviceNotBind | The subdevice is not bound to the gateway device. |
UnsupportedOperation.CannotBindSameFamily | The device has been bound. Do not repeat binding. |
LimitExceeded | Exceed the limit. |
LimitExceeded.FamilyDeviceExceedLimit | The device quantity exceeds the limit. |
UnauthorizedOperation | No permission to operate. |
UnauthorizedOperation.APPNoPermissionToStudioProduct | The App has no permission to operate this product. |