Statuses/repost by me

跳转到: 导航, 搜索
(返回结果)
 
(未显示1个用户的4个中间版本)
第1行: 第1行:
==statuses/repost_by_me ==
+
{{api_desc2|
返回用户转发的最新n条微博信息。
+
uri=statuses/repost_by_me|
 
+
desc=获取用户最新转发的n条微博消息|
=== URL===
+
format=XML/JSON|
http://api.t.sina.com.cn/statuses/repost_by_me.format
+
httpMethod=GET|
 
+
needAuth=true|
=== 格式===
+
rateLimit=true|
xml, json
+
params={{api_args|id|true|int64|要获取转发微博列表的用户ID。}}
 
+
{{api_args|since_id|false|int64|若指定此参数,则只返回ID比since_id大的记录(比since_id发表时间晚)。}}
=== HTTP请求方式===
+
{{api_args|max_id|false|int64|若指定此参数,则返回ID小于或等于max_id的记录}}
GET
+
{{api_args|count|false|int,默认值20,最大值200。|单页返回的记录条数。}}
+
{{api_args|page|false|int,默认值1。|返回结果的页码。}}|
=== 是否需要身份验证===
+
getParam=&id=1642466141|
true
+
postParam=|
+
result=
=== 请求数限制===
+
===XML示例===
true
+
<pre>
 
+
<?xml version="1.0" encoding="UTF-8"?>
=== 请求参数===
+
<statuses>
*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示例:
+
<pre>
+
  <?xml version="1.0" encoding="UTF-8"?><statuses>
+
 
   <status>
 
   <status>
     <created_at>Thu Nov 11 19:56:43 +0800 2010</created_at>
+
     <created_at>Wed Dec 01 13:50:19 +0800 2010</created_at>
     <id>3579990231</id>
+
     <id>3996173251</id>
     <text>test</text>
+
     <text>@FlashSoft 顺便,你可以看看weibopi.com</text>
 
     <source>
 
     <source>
       <a href="http://t.sina.com.cn/pub/21">a</a>
+
       <a href="http://weibopi.com">微博派</a>
 
     </source>
 
     </source>
 
     <favorited>false</favorited>
 
     <favorited>false</favorited>
 
     <truncated>false</truncated>
 
     <truncated>false</truncated>
 
     <geo/>
 
     <geo/>
     <in_reply_to_status_id></in_reply_to_status_id>
+
     <in_reply_to_status_id/>
     <in_reply_to_user_id></in_reply_to_user_id>
+
     <in_reply_to_user_id/>
     <in_reply_to_screen_name></in_reply_to_screen_name>
+
     <in_reply_to_screen_name/>
 
     <user>
 
     <user>
       <id>183027</id>
+
       <id>1642466141</id>
       <screen_name>32456</screen_name>
+
       <screen_name>huchao</screen_name>
       <name>gfgf</name>
+
       <name>huchao</name>
 
       <province>11</province>
 
       <province>11</province>
 
       <city>8</city>
 
       <city>8</city>
       <location>北京</location>
+
       <location>北京 海淀区</location>
       <description></description>
+
       <description/>
       <url></url>
+
       <url>http://tuoniao.org</url>
       <profile_image_url>http://tp2.sinaimg.cn/183025/50/0/1</profile_image_url>
+
       <profile_image_url>http://tp2.sinaimg.cn/1642466141/50/1285424071/1</profile_image_url>
       <domain></domain>
+
       <domain>westy</domain>
 
       <gender>m</gender>
 
       <gender>m</gender>
       <followers_count>2</followers_count>
+
       <followers_count>122</followers_count>
       <friends_count>16</friends_count>
+
       <friends_count>77</friends_count>
       <statuses_count>2</statuses_count>
+
       <statuses_count>0</statuses_count>
 
       <favourites_count>0</favourites_count>
 
       <favourites_count>0</favourites_count>
       <created_at>Fri Oct 15 00:00:00 +0800 2010</created_at>
+
       <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
 
       <following>false</following>
 
       <following>false</following>
 
       <verified>false</verified>
 
       <verified>false</verified>
第69行: 第54行:
 
     </user>
 
     </user>
 
     <retweeted_status>
 
     <retweeted_status>
       <created_at>Thu Nov 11 13:39:23 +0800 2010</created_at>
+
       <created_at>Wed Dec 01 12:49:06 +0800 2010</created_at>
       <id>35734</id>
+
       <id>3995833573</id>
       <text>test-1-613@bwl</text>
+
       <text>哦也,终于可以了</text>
 
       <source>
 
       <source>
         <a href="http://t.sina.com.cn/pub/star"></a>
+
         <a href="http://t.sina.com.cn">新浪微博</a>
 
       </source>
 
       </source>
 
       <favorited>false</favorited>
 
       <favorited>false</favorited>
 
       <truncated>false</truncated>
 
       <truncated>false</truncated>
 
       <geo/>
 
       <geo/>
       <in_reply_to_status_id></in_reply_to_status_id>
+
       <in_reply_to_status_id/>
       <in_reply_to_user_id></in_reply_to_user_id>
+
       <in_reply_to_user_id/>
       <in_reply_to_screen_name></in_reply_to_screen_name>
+
       <in_reply_to_screen_name/>
 
       <user>
 
       <user>
         <id>1785209</id>
+
         <id>1458085847</id>
         <screen_name>bwl</screen_name>
+
         <screen_name>FlashSoft</screen_name>
         <name>bwl</name>
+
         <name>FlashSoft</name>
 
         <province>11</province>
 
         <province>11</province>
 
         <city>8</city>
 
         <city>8</city>
         <location>北京<?/location>
+
         <location>北京 海淀区</location>
         <description></description>
+
         <description>方超 | RIA</description>
         <url></url>
+
         <url>http://i.javascript.cn</url>
         <profile_image_url>http://tp2.sinaimg.cn/17865/50/0/1</profile_image_url>
+
         <profile_image_url>http://tp4.sinaimg.cn/1458085847/50/1286032383/1</profile_image_url>
         <domain>ldr</domain>
+
         <domain>sinaria</domain>
 
         <gender>m</gender>
 
         <gender>m</gender>
         <followers_count>4</followers_count>
+
         <followers_count>433</followers_count>
         <friends_count>42</friends_count>
+
         <friends_count>559</friends_count>
         <statuses_count>86</statuses_count>
+
         <statuses_count>562</statuses_count>
         <favourites_count>0</favourites_count>
+
         <favourites_count>20</favourites_count>
         <created_at>Tue Jul 27 00:00:00 +0800 2010</created_at>
+
         <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at>
 
         <following>false</following>
 
         <following>false</following>
 
         <verified>false</verified>
 
         <verified>false</verified>
第104行: 第89行:
 
       </user>
 
       </user>
 
     </retweeted_status>
 
     </retweeted_status>
   </status></statuses>
+
   </status>
</pre>
+
  ...
 
+
</statuses>
JSON示例:
+
</pre>
<pre>
+
===JSON示例===
  [
+
<pre>
 +
[
 
     {
 
     {
         "created_at": "Thu Nov 11 19:56:43 +0800 2010",  
+
         "created_at" : "Wed Dec 01 13:50:19 +0800 2010",
         "favorited": false,
+
         "text" : "@FlashSoft 顺便,你可以看看weibopi.com",
        "geo": null,  
+
         "truncated" : false,
         "id": 3579931,  
+
         "retweeted_status" :  
         "in_reply_to_screen_name": "",
+
         {
         "in_reply_to_status_id": "",
+
             "created_at" : "Wed Dec 01 12:49:06 +0800 2010",
        "in_reply_to_user_id": "",
+
             "text" : "哦也,终于可以了",
        "retweeted_status": {
+
             "truncated" : false,
             "created_at": "Thu Nov 11 13:39:23 +0800 2010",  
+
             "in_reply_to_status_id" : "",
             "favorited": false,
+
             "in_reply_to_screen_name" : "",
            "geo": null,  
+
             "geo" : null,
             "id": 35734877,  
+
             "user" :  
             "in_reply_to_screen_name": "",  
+
            {
             "in_reply_to_status_id": "",  
+
                "name" : "FlashSoft",
             "in_reply_to_user_id": "",  
+
                "domain" : "sinaria",
             "source": "<a href=\"http://t.sina.com.cn/pub/star\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a\u540d\u4eba\u5802</a>",  
+
                "geo_enabled" : true,
            "text": "test-1-613@bwl",  
+
                "followers_count" : 433,
            "truncated": false,  
+
                 "statuses_count" : 562,
            "user": {
+
                 "favourites_count" : 20,
                 "allow_all_act_msg": false,  
+
                 "city" : "8",
                 "city": "8",  
+
                 "description" : "方超 | RIA",
                 "created_at": "Tue Jul 27 00:00:00 +0800 2010",  
+
                 "verified" : false,
                 "description": "",  
+
                 "id" : 1458085847,
                 "domain": "bwlldr",  
+
                 "gender" : "m",
                 "favourites_count": 0,  
+
                 "friends_count" : 559,
                 "followers_count": 4,
+
                 "screen_name" : "FlashSoft",
                "following": false,  
+
                 "allow_all_act_msg" : false,
                 "friends_count": 42,  
+
                 "following" : false,
                 "gender": "m",  
+
                 "url" : "http://i.javascript.cn",
                 "geo_enabled": true,  
+
                 "profile_image_url" : "http://tp4.sinaimg.cn/1458085847/50/1286032383/1",
                 "id": 1785565,  
+
                "created_at" : "Fri Aug 28 00:00:00 +0800 2009",
                 "location": "\u5317\u4eac \u6d77\u6dc0\u533a",
+
                 "province" : "11",
                "name": "bwl",  
+
                 "location" : "北京 海淀区"
                 "profile_image_url": "http://tp2.sinaimg.cn/109565/50/0/1",  
+
            },
                 "province": "11",  
+
            "favorited" : false,
                 "screen_name": "bwl",  
+
            "in_reply_to_user_id" : "",
                "statuses_count": 86,  
+
            "id" : 3995833573,
                "url": "",  
+
            "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
                "verified": false
+
        },
            }
+
         "in_reply_to_status_id" : "",
        },  
+
        "in_reply_to_screen_name" : "",
        "source": "<a href=\"http://t.sina.com.cn/pub/star\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a\u540d\u4eba\u5802</a>",  
+
         "geo" : null,
         "text": "test 19:46:49 CST#@bwl",  
+
         "user" :  
         "truncated": false,  
+
        {
         "user": {
+
             "name" : "huchao",
             "allow_all_act_msg": false,  
+
             "domain" : "westy",
             "city": "8",  
+
             "geo_enabled" : true,
             "created_at": "Fri Oct 15 00:00:00 +0800 2010",  
+
             "followers_count" : 122,
             "description": "",  
+
             "statuses_count" : 0,
             "domain": "",  
+
             "favourites_count" : 0,
             "favourites_count": 0,  
+
             "city" : "8",
             "followers_count": 2,  
+
             "description" : "",
             "following": false,  
+
            "verified" : false,
             "friends_count": 16,  
+
             "id" : 1642466141,
             "gender": "m",  
+
             "gender" : "m",
             "geo_enabled": true,  
+
             "friends_count" : 77,
             "id": 1885,  
+
             "screen_name" : "huchao",
             "location": "\u5317\u4eac \u6d77\u6dc0\u533a",  
+
             "allow_all_act_msg" : false,
             "name": "3232",  
+
            "following" : false,
             "profile_image_url": "http://tp2.sinaimg.cn/1830276185/50/0/1",  
+
             "url" : "http://tuoniao.org",
             "province": "11",  
+
             "profile_image_url" : "http://tp2.sinaimg.cn/1642466141/50/1285424071/1",
             "screen_name": "32323",  
+
            "created_at" : "Fri Aug 28 00:00:00 +0800 2009",
            "statuses_count": 2,  
+
             "province" : "11",
            "url": "",  
+
             "location" : "北京 海淀区"
            "verified": false
+
        },
         }
+
        "favorited" : false,
    }
+
        "in_reply_to_user_id" : "",
]
+
        "id" : 3996173251,
</pre>
+
         "source" : "<a href=\"http://weibopi.com\" rel=\"nofollow\">微博派</a>"
 
+
    },
=== 使用示例===
+
...
 
+
]
* xml:
+
</pre>|
curl -s -u "uid:password" "http://api.t.sina.com.cn/statuses/repost_by_me.xml?source=appley&id=1830276185"
+
useAge=无|
 
+
otherInfo=
* json:
+
}}
curl -s -u "uid:password" "http://api.t.sina.com.cn/statuses/repost_by_me.json?source=appkey&id=1830276185"
+

2010年12月1日 (三) 16:42的最后版本

目录

statuses/repost_by_me

获取用户最新转发的n条微博消息

URL

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

支持格式

XML/JSON

HTTP请求方式

GET

是否需要登录

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

请求数限制

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

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
id true int64 要获取转发微博列表的用户ID。
since_id false int64 若指定此参数,则只返回ID比since_id大的记录(比since_id发表时间晚)。
max_id false int64 若指定此参数,则返回ID小于或等于max_id的记录
count false int,默认值20,最大值200。 单页返回的记录条数。
page false int,默认值1。 返回结果的页码。

注意事项

返回结果

XML示例

<?xml version="1.0" encoding="UTF-8"?>
<statuses>
  <status>
    <created_at>Wed Dec 01 13:50:19 +0800 2010</created_at>
    <id>3996173251</id>
    <text>@FlashSoft 顺便,你可以看看weibopi.com</text>
    <source>
      <a href="http://weibopi.com">微博派</a>
    </source>
    <favorited>false</favorited>
    <truncated>false</truncated>
    <geo/>
    <in_reply_to_status_id/>
    <in_reply_to_user_id/>
    <in_reply_to_screen_name/>
    <user>
      <id>1642466141</id>
      <screen_name>huchao</screen_name>
      <name>huchao</name>
      <province>11</province>
      <city>8</city>
      <location>北京 海淀区</location>
      <description/>
      <url>http://tuoniao.org</url>
      <profile_image_url>http://tp2.sinaimg.cn/1642466141/50/1285424071/1</profile_image_url>
      <domain>westy</domain>
      <gender>m</gender>
      <followers_count>122</followers_count>
      <friends_count>77</friends_count>
      <statuses_count>0</statuses_count>
      <favourites_count>0</favourites_count>
      <created_at>Fri Aug 28 00:00:00 +0800 2009</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>Wed Dec 01 12:49:06 +0800 2010</created_at>
      <id>3995833573</id>
      <text>哦也,终于可以了</text>
      <source>
        <a href="http://t.sina.com.cn">新浪微博</a>
      </source>
      <favorited>false</favorited>
      <truncated>false</truncated>
      <geo/>
      <in_reply_to_status_id/>
      <in_reply_to_user_id/>
      <in_reply_to_screen_name/>
      <user>
        <id>1458085847</id>
        <screen_name>FlashSoft</screen_name>
        <name>FlashSoft</name>
        <province>11</province>
        <city>8</city>
        <location>北京 海淀区</location>
        <description>方超 | RIA</description>
        <url>http://i.javascript.cn</url>
        <profile_image_url>http://tp4.sinaimg.cn/1458085847/50/1286032383/1</profile_image_url>
        <domain>sinaria</domain>
        <gender>m</gender>
        <followers_count>433</followers_count>
        <friends_count>559</friends_count>
        <statuses_count>562</statuses_count>
        <favourites_count>20</favourites_count>
        <created_at>Fri Aug 28 00:00:00 +0800 2009</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" : "Wed Dec 01 13:50:19 +0800 2010",
        "text" : "@FlashSoft 顺便,你可以看看weibopi.com",
        "truncated" : false,
        "retweeted_status" : 
        {
            "created_at" : "Wed Dec 01 12:49:06 +0800 2010",
            "text" : "哦也,终于可以了",
            "truncated" : false,
            "in_reply_to_status_id" : "",
            "in_reply_to_screen_name" : "",
            "geo" : null,
            "user" : 
            {
                "name" : "FlashSoft",
                "domain" : "sinaria",
                "geo_enabled" : true,
                "followers_count" : 433,
                "statuses_count" : 562,
                "favourites_count" : 20,
                "city" : "8",
                "description" : "方超 | RIA",
                "verified" : false,
                "id" : 1458085847,
                "gender" : "m",
                "friends_count" : 559,
                "screen_name" : "FlashSoft",
                "allow_all_act_msg" : false,
                "following" : false,
                "url" : "http://i.javascript.cn",
                "profile_image_url" : "http://tp4.sinaimg.cn/1458085847/50/1286032383/1",
                "created_at" : "Fri Aug 28 00:00:00 +0800 2009",
                "province" : "11",
                "location" : "北京 海淀区"
            },
            "favorited" : false,
            "in_reply_to_user_id" : "",
            "id" : 3995833573,
            "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
        },
        "in_reply_to_status_id" : "",
        "in_reply_to_screen_name" : "",
        "geo" : null,
        "user" : 
        {
            "name" : "huchao",
            "domain" : "westy",
            "geo_enabled" : true,
            "followers_count" : 122,
            "statuses_count" : 0,
            "favourites_count" : 0,
            "city" : "8",
            "description" : "",
            "verified" : false,
            "id" : 1642466141,
            "gender" : "m",
            "friends_count" : 77,
            "screen_name" : "huchao",
            "allow_all_act_msg" : false,
            "following" : false,
            "url" : "http://tuoniao.org",
            "profile_image_url" : "http://tp2.sinaimg.cn/1642466141/50/1285424071/1",
            "created_at" : "Fri Aug 28 00:00:00 +0800 2009",
            "province" : "11",
            "location" : "北京 海淀区"
        },
        "favorited" : false,
        "in_reply_to_user_id" : "",
        "id" : 3996173251,
        "source" : "<a href=\"http://weibopi.com\" rel=\"nofollow\">微博派</a>"
    },
...
]

其他

文档更新时间: 2010-12-01