-
Notifications
You must be signed in to change notification settings - Fork 16
User
Oleg Baturov edited this page May 28, 2018
·
18 revisions
- getinfo from token
/**
* @function: Get user info from token
*
* @method: GET /info/:token
*
* @param {String|Required} token
*
* @return
* { "status": 200, "msg": "success", data: userInfo }
*
* userInfo = {
* email, token, approvalStatus, approvalDescriptin
* }
*/
- Generate token for user email
/**
* @function: Generate token for user email
*
* @method: POST /gentoken
*
* @param {String|Required} email
*
* @return
* { "status": 200, "msg": "success", data: { token, email } }
*/
- Update user from token, email
/**
* @function: Update user from token, email
*
* @method: POST /update
*
* @param {String|Required} email
* @param {String|Required} token
* @param {String} name
* @param {String} phone
* @param {String} dob
* @param {String} nationalityCountry
* @param {String} residenceCountry
* @param {String} residenceAddress
* @param {String} adminContact
* @param {String} checkStatus
* @param {String} adminMessage
* @param {String} backgroundCheckId
*
* @return
* { "status": 200, "msg": "success", data: userInfo }
*/