[关闭]
@fuyb1986 2016-06-30T11:10:37.000000Z 字数 874 阅读 525

获取用户信息

欣略


1. 用户获取自己的Profile

Description

用户获取自己的Profile

Method and URL Structure

Method Resource URL
GET /account/profile/${username}

Response

  1. {
  2. "pk": 1,
  3. "owner": "18516271364",
  4. "nickname": "昵称",
  5. "avatar_url": "http://example.com/avatar.jpg",
  6. "company_name": "公司名字",
  7. "organization_code": "组织机构代码",
  8. "linkman": "联系人",
  9. "mobile": "联系人手机",
  10. "location": null,
  11. "company_introduction": "公司介绍",
  12. "website": "http://example.com/website/"
  13. }

2. 用户更新Profile

Description

用户更新Profile

Method and URL Structure

Method Resource URL
PUT /account/profile/${username}

NOTE

可以单独更新其中一个

Request Data

  1. {
  2. "nickname": "昵称",
  3. "avatar_url": "http://example.com/avatar.jpg",
  4. "company_name": "公司名字",
  5. "organization_code": "组织机构代码",
  6. "linkman": "联系人",
  7. "mobile": "联系人手机",
  8. "location": null,
  9. "company_introduction": "公司介绍",
  10. "website": "http://example.com/website/"
  11. }

Response

同获取Profile

3. whoami

Description

用户获取自己的Profile

Method and URL Structure

Method Resource URL
GET /account/whoami/

Response

同获取Profile

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注