https://api.sciener.com/v3/user/register
Alert:If you have already registered an account in Sciener APP, there is no need to call this api to register a new account,just Get Access Token with the account.
If you already have or plan to maintain your own user info in your database,and do not want to let us to know your user info,you can create an user account via this API and bind it with the user in your system.
For example:
(1)Your client registered an email account (alexa@google.com) in your system;
(2)You request this API to register an user in cloud server,username parameter can be a random string, for example:c042f4db68f23406c6cecf84a7ebb0fe,cloud API will return a prefixed username:abcd_c042f4db68f23406c6cecf84a7ebb0fe,the prefix abcd_is randomly generated when Create application,it is used for user namespace of different applications,there is no other use of it, it can't be customized;
(3)You maintain a relation between your user account alexa@google.com and open cloud's user account abcd_c042f4db68f23406c6cecf84a7ebb0fe;
(4)When the user alexa@google.com have to access cloud API,Get Access Token with username abcd_c042f4db68f23406c6cecf84a7ebb0fe.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxxcurl --location -g --request POST 'https://api.sciener.com/v3/user/register' \--header 'Content-Type: application/x-www-form-urlencoded' \--data-urlencode 'clientId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \--data-urlencode 'clientSecret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \--data-urlencode 'username=c042f4db68f23406c6cecf84a7ebb0fe' \--data-urlencode 'password=e10adc3949ba59abbe56e057f20f883e' \--data-urlencode 'date=1625019027000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| clientSecret | String | Y | client_secret from Create application |
| username | String | Y | username,only numbers and English letters allowed,this api will return a prefixed username, please GET Access Token with the prefixed username |
| password | String | Y | Password(32 chars, low case, md5 encrypted) |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| username | String | Prefixed username, please GET Access Token with this prefixed username |
xxxxxxxxxx{"username": "abcd_c042f4db68f23406c6cecf84a7ebb0fe"}