验证码登录
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
{ "telephone":"18012345678",}
cURL Example
$ curl -X GET htttp://127.0.0.1:8000/program_girl/vcode_login_request/
JSON Response
{ "status": 0, "message": ""}
登录
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
curl -X POST --data '{"telephone": "18012345678", "verification_code": "906896"}' -H 'Content-Type: application/json' http://localhost:8000/program_girl/userinfo/vcode_login/
JSON Response
{ "token":"436bad6e50ff8ff92bae5395fb823e3f9af49a79"}