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
{ "expert":"expert_username", "username":"username", "password":"password",}
cURL Example
curl http://www.haorenao.cn/cmd/?cmd=follow_expert&username=12345678910&password=123456&expert=10987654321
JSON Response
| Name |
Description |
| ret |
标识是否成功 ok, 成功; failed, 失败 |
| reason |
失败原因,比如:身份验证失败 |
{ "ret": "ok", "reason": "",}
用户 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
{ "expert":"expert_username", "username":"username", "password":"password",}
cURL Example
curl http://www.haorenao.cn/cmd/?cmd=unfollow_expert&username=12345678910&password=123456&expert=10987654321
JSON Response
| Name |
Description |
| ret |
标识是否成功 ok, 成功; failed, 失败 |
| reason |
失败原因,比如:身份验证失败 |
{ "ret": "ok", "reason": "",}