Skip to content

1. Validations

Henry Chang edited this page Mar 3, 2016 · 3 revisions

POST /api/v1/accounts/validations

  • Sandbox route: /api/v1/sandboxs/accounts/validations/
  • 用途:使用者註冊,發送驗證碼
  • header:
    • apiKey(必要的)- API 鑰匙
  • payload:
    {
      "phoneNumber": "+886975531859" /*E.164 international format)*/
    }
  • parameter:
  • response:
    {
      "userUuid": "xzed-1234-sxxd-3321"
    }

POST /api/v1/accounts/tokens

  • 用途:使用者登入
  • header:
    • apiKey(必要的)- API 鑰匙
  • payload:
    {
    "userUuid": "eb5de503-70ae-4f5f-871c-d805bfbfc931",
    "code":"243712"
     }
  • parameter:
  • response:
    {
         "token": "aujensekdw123ejdmm"
    }

DELETE /api/v1/accounts/tokens/{token}

  • 用途:使用者登出
  • header:
    • apiKey(必要的)- API 鑰匙
  • payload: 無
  • parameter:
    • token: token-id
  • response:
  • status
  • 200 OK
    {}

Clone this wiki locally