Statuses/comments by me

跳转到: 导航, 搜索

目录

statuses/comments_by_me

发出的评论

URL

http://api.t.sina.com.cn/statuses/comments_by_me.format

格式

xml, json, rss, atom

HTTP请求方式

GET

是否需要登录

true

请求数限制

1 call per request

参数

  • since_id. 可选参数. 返回ID比数值since_id大(比since_id时间晚的)的评论。

o Example: http://api.t.sina.com.cn/statuses/comments_by_me.xml?since_id=12345

  • max_id. 可选参数. 返回ID不大于max_id(时间不晚于max_id)的评论。

o Example: http://api.t.sina.com.cn/statuses/comments_by_me.xml?max_id=54321

  • count. 可选参数. 每次返回的最大记录数(即页面大小),不大于200。

o Example: http://api.t.sina.com.cn/statuses/comments_by_me.xml?count=200

  • page. 可选参数. 返回结果的页序号。注意:有分页限制。

o Example: http://api.t.sina.com.cn/statuses/comments_by_me.xml?page=3

Response

XML示例:

<?xml version="1.0" encoding="UTF-8"?>
<comments>
 <comment>
   <id>8374590857</id>
   <text>支持API</text>
   <source>
     <a href="http://t.sina.com.cn">Web</a>
   </source>
   <favorited>false</favorited>
   <truncated>false</truncated>
   <created_at>Tue Nov 17 20:11:24 +0800 2009</created_at>
   <user>
     <id>10503</id>
     <screen_name>timyang</screen_name>
     <name>Tim Yang</name>
     <location>广州</location>
     <description>blog: timyang.net</description>
     <profile_image_url>http://tt8.sinaimg.cn/10503/50/1256306049</profile_image_url>
     <followers_count>0</followers_count>
     <friends_count>0</friends_count>
     <statuses_count>0</statuses_count>
     <favourites_count>0</favourites_count>
   </user>
   <comment_src>
     <id>8374590856</id>
     <text>微博平台很重要的一点在于多渠道,使得用户可以随时随地随意收发信息,我们会在这个 方向努力的。</text>
     <source>
       <a href="http://t.sina.com.cn">Web</a>
     </source>
     <favorited>false</favorited>
     <truncated>false</truncated>
     <created_at>Tue Nov 17 20:11:24 +0800 2009</created_at>
     <user>
       <id>10503</id>
       <screen_name>timyang</screen_name>
       <name>Tim Yang</name>
       <location>广州</location>
       <description>blog: timyang.net</description>
       <profile_image_url>http://tt8.sinaimg.cn/10503/50/1256306049</profile_image_url>
       <followers_count>0</followers_count>
       <friends_count>0</friends_count>
       <statuses_count>0</statuses_count>
       <favourites_count>0</favourites_count>
     </user>
   </comment_src>
 </comment>
... truncated ...
</comments>

使用示例

cURL: curl -u user:password http://api.t.sina.com.cn/statuses/comments_by_me.xml