Statuses/repost by me

跳转到: 导航, 搜索

目录

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