[关闭]
@fuyb1986 2016-03-19T05:15:25.000000Z 字数 982 阅读 570

Follow/Unfollow 达人接口

好热闹

Follow 达人接口

Description

用户 Follow 达人

Method and URL Structure

Method Resource URL
GET /cmd/?cmd=follow_expert

Request Parameters

Name Description Required Default
expert 达人的用户名 YES
username 用户名 YES
password 密码 YES

Request

  1. {
  2. "expert":"expert_username",
  3. "username":"username",
  4. "password":"password",
  5. }

cURL Example

  1. curl http://www.haorenao.cn/cmd/?cmd=follow_expert&username=12345678910&password=123456&expert=10987654321

JSON Response

Name Description
ret 标识是否成功 ok, 成功; failed, 失败
reason 失败原因,比如:身份验证失败
  1. {
  2. "ret": "ok",
  3. "reason": "",
  4. }

用户 Unfollow 达人

Description

用户 Unfollow 达人

Method and URL Structure

Method Resource URL
GET /cmd/?cmd=unfollow_expert

Request Parameters

Name Description Required Default
expert 达人的用户名 YES
username 用户名 YES
password 密码 YES

Request

  1. {
  2. "expert":"expert_username",
  3. "username":"username",
  4. "password":"password",
  5. }

cURL Example

  1. curl http://www.haorenao.cn/cmd/?cmd=unfollow_expert&username=12345678910&password=123456&expert=10987654321

JSON Response

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