[关闭]
@fuyb1986 2016-03-19T05:55:26.000000Z 字数 921 阅读 560

申请成为达人

好热闹


Method and URL Structure

Method Resource URL
POST /forum/expert_application/

Request Parameters

Name Description Required Default
username 用户名 YES
password 密码 YES
nicakname 昵称 YES
portrait_uri 头像 YES
qq QQ号 YES
wx 微信号 YES
profile 个人介绍 YES
name 姓名 YES
sex 性别 YES
date_of_birth 出生日期 YES
industry 职业 YES
school 学校 NO
hobbies 兴趣 NO
provincial YES
city YES
area YES
town NO
address_datail 详细地址 YES
skills 技能列表 YES
skill_name 技能名称 YES
skill_price 技能价格 YES

Request

  1. {
  2. "username":"username",
  3. "password":"password",
  4. "nickname":"nickname",
  5. "portrait_uri":"http://www.haorenao.cn/static/xxxx.png",
  6. "qq":"12345678",
  7. "wx":"00cc_xxx",
  8. "profile":"user_profile",
  9. "name":"xiaoming",
  10. "sex":"M",
  11. "date_of_birth":"1990-01-01",
  12. "industry":u"职业",
  13. "provincial":u"北京",
  14. "city":u"北京",
  15. "area":u"朝阳区",
  16. "town":u"樟木头镇",
  17. "address_detai":u"滨海路麒麟花园9号",
  18. "skills": [
  19. {
  20. "skill_name":u"园艺",
  21. "skill_price":3.3,
  22. }..]
  23. }

cURL Example

  1. curl www.haorenao.cn/forum/expert_application/

JSON Response

Name Description
ret 标识是否成功。ok, 成功; failed, 失败
reason 失败原因,比如:身份验证失败
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注