[关闭]
@JackieQu 2018-10-10T14:15:20.000000Z 字数 913 阅读 263

公众号内绑定

程序媛



请求验证码(手机号)

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

  1. ?telephone=13263699826

cURL Example

  1. curl -X GET -H 'Authorization: Token wx001' -d data{...}
  2. 127.0.0.1:8000/program_girl/userinfo/bind_new_openid_request/?telephone=13263699826

JSON Response

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

绑定(手机号)

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

  1. {
  2. "telephone": "13263699826",
  3. "verification_code": "657457"
  4. "question": 1,
  5. "answer": 2
  6. }

cURL Example

  1. curl -X POST -H 'Authorization: Token wx001' -d data{...}
  2. 127.0.0.1:8000/program_girl/userinfo/bind_new_openid/

JSON Response

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