[关闭]
@fuyb1986 2018-09-18T06:55:54.000000Z 字数 725 阅读 703

验证码登录

program_girl


1. 获取验证码

Method and URL Structure

Method Resource URL
GET /program_girl/userinfo/vcode_login_request/

Request Parameters

Name Description Required Default
telephone 用户名 YES

Request

  1. {
  2. "telephone":"18012345678",
  3. }

cURL Example

  1. $ curl -X GET htttp://127.0.0.1:8000/program_girl/vcode_login_request/

JSON Response

  1. {
  2. "status": 0,
  3. "message": ""
  4. }

登录

Method and URL Structure

Method Resource URL
POST /program_girl/userinfo/vcode_login/

Request Parameters

Name Description Required Default
telephone 手机号/用户名 YES
verification_code 验证码 Yes

cURL Example

  1. curl -X POST --data '{"telephone": "18012345678", "verification_code": "906896"}' -H 'Content-Type: application/json' http://localhost:8000/program_girl/userinfo/vcode_login/

JSON Response

  1. {
  2. "token":"436bad6e50ff8ff92bae5395fb823e3f9af49a79"
  3. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注