Statuses/repost by me

跳转到: 导航, 搜索

目录

statuses/repost_by_me

返回用户转发的最新n条微博信息。

URL

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

格式

xml, json

HTTP请求方式

GET

是否需要身份验证

true

请求数限制

true

请求参数

  • id: (必选)返回用户转发的微博列表。

示例: http://api.t.sina.com.cn/statuses/repost_by_me.xml?id=123456

  • since_id: 微博信息ID. 只返回ID比since_id大(比since_id时间晚的)的微博信息内容。

示例: http://api.t.sina.com.cn/statuses/repost_by_me.xml?since_id=12345

  • max_id: 微博信息ID. 返回ID不大于max_id的微博信息内容。

示例:http://api.t.sina.com.cn/statuses/repost_by_me.xml?max_id=54321

  • count: 每次返回的最大记录数,不能超过200,默认20.

示例: http://api.t.sina.com.cn/statuses/repost_by_me.xml?count=5

  • page: 返回结果的页序号, 默认1

示例: http://api.t.sina.com.cn/statuses/repost_by_me.xml?page=3

返回结果

XML示例:

 <?xml version="1.0" encoding="UTF-8"?><statuses>
 <status>
   <created_at>Thu Nov 11 19:56:43 +0800 2010</created_at>
   <id>3579990231</id>
   <text>test</text>
   <source>
     <a href="http://t.sina.com.cn/pub/21">a</a>
   </source>
   <favorited>false</favorited>
   <truncated>false</truncated>
   <geo/>
   <in_reply_to_status_id></in_reply_to_status_id>
   <in_reply_to_user_id></in_reply_to_user_id>
   <in_reply_to_screen_name></in_reply_to_screen_name>
   <user>
     <id>183027</id>
     <screen_name>32456</screen_name>
     <name>gfgf</name>
     <province>11</province>
     <city>8</city>
     <location>北京</location>
     <description></description>
     <url></url>
     <profile_image_url>http://tp2.sinaimg.cn/183025/50/0/1</profile_image_url>
     <domain></domain>
     <gender>m</gender>
     <followers_count>2</followers_count>
     <friends_count>16</friends_count>
     <statuses_count>2</statuses_count>
     <favourites_count>0</favourites_count>
     <created_at>Fri Oct 15 00:00:00 +0800 2010</created_at>
     <following>false</following>
     <verified>false</verified>
     <allow_all_act_msg>false</allow_all_act_msg>
     <geo_enabled>true</geo_enabled>
   </user>
   <retweeted_status>
     <created_at>Thu Nov 11 13:39:23 +0800 2010</created_at>
     <id>35734</id>
     <text>test-1-613@bwl</text>
     <source>
       <a href="http://t.sina.com.cn/pub/star"></a>
     </source>
     <favorited>false</favorited>
     <truncated>false</truncated>
     <geo/>
     <in_reply_to_status_id></in_reply_to_status_id>
     <in_reply_to_user_id></in_reply_to_user_id>
     <in_reply_to_screen_name></in_reply_to_screen_name>
     <user>
       <id>1785209</id>
       <screen_name>bwl</screen_name>
       <name>bwl</name>
       <province>11</province>
       <city>8</city>
       <location>北京<?/location>
       <description></description>
       <url></url>
       <profile_image_url>http://tp2.sinaimg.cn/17865/50/0/1</profile_image_url>
       <domain>ldr</domain>
       <gender>m</gender>
       <followers_count>4</followers_count>
       <friends_count>42</friends_count>
       <statuses_count>86</statuses_count>
       <favourites_count>0</favourites_count>
       <created_at>Tue Jul 27 00:00:00 +0800 2010</created_at>
       <following>false</following>
       <verified>false</verified>
       <allow_all_act_msg>false</allow_all_act_msg>
       <geo_enabled>true</geo_enabled>
     </user>
   </retweeted_status>
 </status></statuses>


JSON示例:

 [
   {
       "created_at": "Thu Nov 11 19:56:43 +0800 2010", 
       "favorited": false, 
       "geo": null, 
       "id": 3579931, 
       "in_reply_to_screen_name": "", 
       "in_reply_to_status_id": "", 
       "in_reply_to_user_id": "", 
       "retweeted_status": {
           "created_at": "Thu Nov 11 13:39:23 +0800 2010", 
           "favorited": false, 
           "geo": null, 
           "id": 35734877, 
           "in_reply_to_screen_name": "", 
           "in_reply_to_status_id": "", 
           "in_reply_to_user_id": "", 
           "source": "<a href=\"http://t.sina.com.cn/pub/star\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a\u540d\u4eba\u5802</a>", 
           "text": "test-1-613@bwl", 
           "truncated": false, 
           "user": {
               "allow_all_act_msg": false, 
               "city": "8", 
               "created_at": "Tue Jul 27 00:00:00 +0800 2010", 
               "description": "", 
               "domain": "bwlldr", 
               "favourites_count": 0, 
               "followers_count": 4, 
               "following": false, 
               "friends_count": 42, 
               "gender": "m", 
               "geo_enabled": true, 
               "id": 1785565, 
               "location": "\u5317\u4eac \u6d77\u6dc0\u533a", 
               "name": "bwl", 
               "profile_image_url": "http://tp2.sinaimg.cn/109565/50/0/1", 
               "province": "11", 
               "screen_name": "bwl", 
               "statuses_count": 86, 
               "url": "", 
               "verified": false
           }
       }, 
       "source": "<a href=\"http://t.sina.com.cn/pub/star\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a\u540d\u4eba\u5802</a>", 
       "text": "test 19:46:49 CST#@bwl", 
       "truncated": false, 
       "user": {
           "allow_all_act_msg": false, 
           "city": "8", 
           "created_at": "Fri Oct 15 00:00:00 +0800 2010", 
           "description": "", 
           "domain": "", 
           "favourites_count": 0, 
           "followers_count": 2, 
           "following": false, 
           "friends_count": 16, 
           "gender": "m", 
           "geo_enabled": true, 
           "id": 1885, 
           "location": "\u5317\u4eac \u6d77\u6dc0\u533a", 
           "name": "3232", 
           "profile_image_url": "http://tp2.sinaimg.cn/1830276185/50/0/1", 
           "province": "11", 
           "screen_name": "32323", 
           "statuses_count": 2, 
           "url": "", 
           "verified": false
       }
   }

]


使用示例

  • xml:

curl -s -u "uid:password" "http://api.t.sina.com.cn/statuses/repost_by_me.xml?source=appley&id=1830276185"

  • json:

curl -s -u "uid:password" "http://api.t.sina.com.cn/statuses/repost_by_me.json?source=appkey&id=1830276185"