Send ekey

https://api.sciener.com/v3/key/send

The ekey receiver can login Sciener APP to get the ekey send by lock administrator.

If the developer want to develop your own APP based on our APP SDK,the ekey can be requested by cloud API: Get the eKey list of an account with access token get by receiverUsername and it's passowrd.

receiverUsername should be account registered in Sciener APP or user registered by cloud API: User register.

If receiverUsername is a mobile phone number or email account which is not registered yet, you can request with parameter createUser=1, the cloud will automatically create an user account for it, the default password of the account is the last six char of receiverUsername , for example: receiverUsername=+158876191905, it's default password will be 191905.

A user account can only have one ekey for a lock, so if you send ekey to a user already have this lock's ekey, the old ekey will be deleted.

Send ekey to oneself or top administrator is forbidden.

1 Request example

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

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
receiverUsernameStringYThe receiver's username
keyNameStringYKey name
startDateLongYThe time when it becomes valid (timestamp in millisecond)
endDateLongYThe time when it is expired (timestamp in millisecond)
remarksStringNComment
remoteEnableIntNIs remote unlock enabled: 1-yes, 2-no
keyRightIntNIs an authorized ekey: 1-yes, 0-no,the default value is 0
createUserIntNAuto create Sciener account if receiverUsername is not a registered Sciener account: 1-yes, 2-no (default), this parameter take effect only when receiverUsername is a mobile number or email, the created account's password is the last six characters of the username.
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
keyIdIntEkey ID