API REFERENCE GUIDE

USER PROFILE  mobile_confirm

api description

purpose

mobile_confirm verifies the code sent by mobile_define in order to confirm a mobile phone number.

mobile_confirm requires valid session parameters: uuid, usid, udid and eost. See signin for further details.

http method: POST

call cost: 1 point

See the pricing section for more details.

mandatory parameter(s)

parameter values / comments
api"mobile_confirm"
key E.g. "c54e7837e0cd0ced286cb5995327d1ab54e35987179b2". It is an application key generated by AuverCloud Studio.
uuidUnique User ID.
usidUnique Session ID.
udidUnique Device ID.
eostEnd of Session Time.
codeA 6-characters code received by SMS from the API mobile_define e.g. "ABCDEF".

optional parameters(s)

None

call sample

This example is the code used in the test case below. It assumes that jQuery and the JavaScript AuverCloud runtime client are loaded in order to use the arc.api() method. See the API client section for more details.


							

errors

code message comments
655 Unexpected validation code. This occurs if no mobile_define call has been done before or if the phone number is already confirmed. You can use use profile_get to retrieve the current value of the mobile phone number.
656 Wrong validation code. In that case, the process must be restarted by a mobile_define call.

See also the Common errors section.

test bed

Call

To test the API with your own keys, please see the section Application keys in AuverCloud Studio.

api
mobile_confirm
key
code
 send
request
 clear
response
Response
code
msg
data

discussion