公众号内绑定
程序媛
- /program_girl/userinfo/register_or_login/
- 这个接口也需要用
token
验证
- 不加
token
不影响原结果,但无法更新该用户在团队排行中的名次
请求验证码(手机号)
Method and Url Structure
Method |
Resource URL |
GET |
/program_girl/userinfo/bind_new_openid_request/ |
Request and Parameters
Name |
Description |
Required |
Default |
telephone |
手机号 |
YES |
|
Request
?telephone=13263699826
cURL Example
curl -X GET -H 'Authorization: Token wx001' -d data{...}
127.0.0.1:8000/program_girl/userinfo/bind_new_openid_request/?telephone=13263699826
JSON Response
{
"status": 0,
"message": ""
}
绑定(手机号)
Method and Url Structure
Method |
Resource URL |
POST |
/program_girl/userinfo/bind_new_openid/ |
Request and Parameters
Name |
Description |
Required |
Default |
telephone |
电话号 |
YES |
|
verification_code |
验证码 |
YES |
|
question |
调查问卷题目pk |
NO |
|
answer |
调查问卷答案pk |
NO |
|
Request
{
"telephone": "13263699826",
"verification_code": "657457"
"question": 1,
"answer": 2
}
cURL Example
curl -X POST -H 'Authorization: Token wx001' -d data{...}
127.0.0.1:8000/program_girl/userinfo/bind_new_openid/
JSON Response
{
"status": 0,
"message": ""
}