Trends

跳转到: 导航, 搜索
第12行: 第12行:
 
result=
 
result=
 
===XML示例===
 
===XML示例===
<code>[xml,Y]
+
<code>
 +
<pre>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<trends>
 
<trends>
第26行: 第27行:
 
</trend>
 
</trend>
 
</trends>
 
</trends>
 +
<pre>
 
</code>
 
</code>
  

2010年11月30日 (二) 14:22的版本

目录

trends

获取某用户的话题。

URL

http://api.t.sina.com.cn/trends.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

GET

是否需要登录

TRUE
关于授权机制,参见授权机制声明

请求数限制

TRUE
关于请求数限制,参见接口访问权限说明

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
user_id true int 用户id
page false int,缺省值为1 页码
count false int,缺省值为10 每页返回的记录数

注意事项

返回结果

XML示例

<?xml version="1.0" encoding="UTF-8"?>
<trends>
<trend>
<trend_id>null</trend_id>
<hotword>ddddsss</hotword>
<num>1</num>
</trend>
<trend>
<trend_id>null</trend_id>
<hotword>dddd</hotword>
<num>14881</num>
</trend>
</trends>
<pre>
</code>

===JSON示例===
<pre>
[{"num":"1","trend_id":"876637","hotword":"ddddsss"},{"num":"14881","trend_id":"876636","hotword":"dddd"}]

其他