User register

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.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
clientSecretStringYclient_secret from Create application
usernameStringYusername,only numbers and English letters allowed,this api will return a prefixed username, please GET Access Token with the prefixed username
passwordStringYPassword(32 chars, low case, md5 encrypted)
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
usernameStringPrefixed username, please GET Access Token with this prefixed username