C/2/attitudes/to me

跳转到: 导航, 搜索
(以“{{Api_desc_business| uri=attitudes/to_me| desc=获取我收到表态的微博列表。| httpMethod=GET| needAuth=是| rateLimit={{B_rate_limit}}| params={{api_args|p...”为内容创建页面)
 
第1行: 第1行:
 
{{Api_desc_business|
 
{{Api_desc_business|
 
uri=attitudes/to_me|
 
uri=attitudes/to_me|
desc=获取我收到表态的微博列表。|
+
desc=获取我收到赞的列表。|
 
httpMethod=GET|
 
httpMethod=GET|
 
needAuth=是|
 
needAuth=是|
 
rateLimit={{B_rate_limit}}|
 
rateLimit={{B_rate_limit}}|
 
params={{api_args|page|false|int|返回结果的页码,默认为1。}}
 
params={{api_args|page|false|int|返回结果的页码,默认为1。}}
{{api_args|count|false|int|返回结果的条数数量,最大不超过200,默认为50。}}|
+
{{api_args|count|false|int|返回结果的条数数量,最大不超过200,默认为50。}}
 +
{{api_args|since_id|false|int64|若指定此参数,则只返回ID比since_id大的赞信息(即比since_id发表时间晚的赞信息),默认为0。}}
 +
{{api_args|max_id|false|int64|若指定此参数,则返回ID小于或等于max_id的赞信息,默认为0。}}|
 
result=
 
result=
 
<pre>
 
<pre>
 +
//成功返回
 
{
 
{
 
     "attitudes": [
 
     "attitudes": [
 
         {
 
         {
             "created_at": "Sun Dec 22 13:12:01 +0800 2013",
+
             "id": 3479706106103106,
             "id": 3658295682123028,
+
             "created_at": "Thu Aug 16 17:40:44 +0800 2012",
            "mid": "3658295682123028",
+
             "attitude": "smile",
             "idstr": "3658295682123028",
+
             "last_attitude": "smile",
             "text": "我像是动漫从业人员吗...?大数据计算能再准点吗...?",
+
             "source": "<a href=\"http://meyou.weibo.com\" rel=\"nofollow\">密友</a>",
             "source": "<a href=\"http://weibo.com/\" rel=\"nofollow\">新浪微博</a>",
+
            "favorited": false,
+
            "truncated": false,
+
            "in_reply_to_status_id": "",
+
            "in_reply_to_user_id": "",
+
            "in_reply_to_screen_name": "",
+
            "pic_urls": [],
+
            "geo": null,
+
 
             "user": {
 
             "user": {
                 "id": 1404376560,
+
                 ... // 对微博赞的用户user信息
                "idstr": "1404376560",
+
                "class": 1,
+
                "screen_name": "zaku",
+
                "name": "zaku",
+
                "province": "11",
+
                "city": "5",
+
                "location": "北京 朝阳区",
+
                "description": "微博开放平台产品。人生五十年,乃如梦如幻;有生斯有死,壮士复何憾。",
+
                "url": "http://blog.sina.com.cn/zaku",
+
                "profile_image_url": "http://tp1.sinaimg.cn/1404376560/50/5629870687/1",
+
                "profile_url": "zaku",
+
                "domain": "zaku",
+
                "weihao": "",
+
                "gender": "m",
+
                "followers_count": 1639,
+
                "friends_count": 663,
+
                "statuses_count": 4673,
+
                "favourites_count": 28,
+
                "created_at": "Fri Aug 28 16:34:24 +0800 2009",
+
                "following": false,
+
                "allow_all_act_msg": false,
+
                "geo_enabled": true,
+
                "verified": false,
+
                "verified_type": -1,
+
                "remark": "",
+
                "ptype": 0,
+
                "allow_all_comment": true,
+
                "avatar_large": "http://tp1.sinaimg.cn/1404376560/180/5629870687/1",
+
                "avatar_hd": "http://tp1.sinaimg.cn/1404376560/180/5629870687/1",
+
                "verified_reason": "",
+
                "follow_me": false,
+
                "online_status": 0,
+
                "bi_followers_count": 311,
+
                "lang": "zh-cn",
+
                "star": 0,
+
                "mbtype": 0,
+
                "mbrank": 0,
+
                "block_word": 0
+
 
             },
 
             },
             "reposts_count": 0,
+
             "status": {
            "comments_count": 2,
+
                 ... // 被赞的微博status信息
            "attitudes_count": 2,
+
             }
            "mlevel": 0,
+
        },
            "visible": {
+
         ...
                 "type": 0,
+
                "list_id": 0
+
             },
+
            "unread_count": 2
+
         }
+
 
     ],
 
     ],
 
     "hasvisible": false,
 
     "hasvisible": false,
 
     "previous_cursor": 0,
 
     "previous_cursor": 0,
     "next_cursor": 3646420453723551,
+
     "next_cursor": 0,
     "total_number": 48
+
     "total_number": 1
 +
}
 +
 +
//失败返回
 +
{
 +
    "request": "/2/attitudes/to_me.json",
 +
    "error_code": "243XX",
 +
    "error": "error message."
 
}
 
}
 
</pre>|
 
</pre>|

2016年6月8日 (三) 15:38的版本

attitudes/to_me

获取我收到赞的列表。

URL

https://c.api.weibo.com/2/attitudes/to_me.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


关于登录授权,参见 如何登录授权

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
page false int 返回结果的页码,默认为1。
count false int 返回结果的条数数量,最大不超过200,默认为50。
since_id false int64 若指定此参数,则只返回ID比since_id大的赞信息(即比since_id发表时间晚的赞信息),默认为0。
max_id false int64 若指定此参数,则返回ID小于或等于max_id的赞信息,默认为0。

注意事项

返回结果

JSON示例

//成功返回
{
    "attitudes": [
        {
            "id": 3479706106103106,
            "created_at": "Thu Aug 16 17:40:44 +0800 2012",
            "attitude": "smile",
            "last_attitude": "smile",
            "source": "<a href=\"http://meyou.weibo.com\" rel=\"nofollow\">密友</a>",
            "user": {
                ... // 对微博赞的用户user信息
            },
            "status": {
                ... // 被赞的微博status信息
            }
        },
        ...
    ],
    "hasvisible": false,
    "previous_cursor": 0,
    "next_cursor": 0,
    "total_number": 1
}
 
//失败返回
{
    "request": "/2/attitudes/to_me.json",
    "error_code": "243XX",
    "error": "error message."
}

关于错误返回值与错误代码,参见 错误代码说明

字段说明

其他



Language: [[{{{2/uri}}}|中文]]


api评价