Get user id
https://cnapi.sciener.com/v3/user/getUid
Request this API for user id of your account.
When developing your own APP base on our APP SDK to init gateway you'll need a parameter: uid to identify which user account the gateway will belongs to.
1 Request example
javascript
x
curl --location -g --request GET 'https://cnapi.sciener.com/v3/user/getUid?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=61a2aed94d015882c2db764591aaeb0e&date=1625019027000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| uid | Int | User id |
{
"uid": 2529
}