Skip to content
Oleg Baturov edited this page May 28, 2018 · 18 revisions

Welcome to user api wiki!

User Backend APIS

Summary

get info from token
Update user from token, email


Description

  • 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 }
*/
Clone this wiki locally