Trends/is follow
(创建新页面为 '{{api_desc2| uri=trends/is_follow| desc=判断当前用户是否关注某话题。| format=XML/JSON| httpMethod=GET| needAuth=true| rateLimit=true| params={{api_args|trend_name|…') |
|||
(未显示1个用户的1个中间版本) | |||
第6行: | 第6行: | ||
needAuth=true| | needAuth=true| | ||
rateLimit=true| | rateLimit=true| | ||
− | params={{api_args| | + | params={{api_args|topic|true|string|话题关键字,必须做URL Encode。}}| |
− | getParam=& | + | getParam=&topic=test| |
postParam=| | postParam=| | ||
result= | result= | ||
第15行: | 第15行: | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<trends> | <trends> | ||
− | < | + | <topicid>123454</topicid> //话题ID,无则返回空值。 |
<is_follow>true</is_follow> //已经关注了该话题返回true,否则返回false | <is_follow>true</is_follow> //已经关注了该话题返回true,否则返回false | ||
</trends> | </trends> |
2011年2月18日 (五) 12:28的最后版本
目录 |
trends/is_follow
判断当前用户是否关注某话题。
URL
http://api.t.sina.com.cn/trends/is_follow.(json%7Cxml)
支持格式
XML/JSON
HTTP请求方式
GET
是否需要登录
true
关于授权机制,参见授权机制声明
请求数限制
true
关于请求数限制,参见接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
source | true | string | 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数) |
topic | true | string | 话题关键字,必须做URL Encode。 |
注意事项
返回结果
XML示例
//成功返回: <?xml version="1.0" encoding="UTF-8"?> <trends> <topicid>123454</topicid> //话题ID,无则返回空值。 <is_follow>true</is_follow> //已经关注了该话题返回true,否则返回false </trends> //失败返回: <err_info> <hash> <request>/account/profile/education.xml</request>//调用地址 <error_code>500</error_code>//错误代码 <error>50001:Error: system error!</error>//错误信息 </hash> <hash /> …… </err_info>
JSON示例
其他
无
文档更新时间: 2011-02-18