C/2/attitudes/exists/biz

跳转到: 导航, 搜索
(以“{{Api_desc_business| uri=attitudes/show/biz| desc=批量获取当前用户对微博是否表态过。| httpMethod=GET| needAuth=是| rateLimit={{B_rate_limit}}| para...”为内容创建页面)
 
第1行: 第1行:
 
{{Api_desc_business|
 
{{Api_desc_business|
uri=attitudes/show/biz|
+
uri=attitudes/exists/biz|
 
desc=批量获取当前用户对微博是否表态过。|
 
desc=批量获取当前用户对微博是否表态过。|
 
httpMethod=GET|
 
httpMethod=GET|

2018年7月4日 (三) 16:36的版本

attitudes/exists/biz

批量获取当前用户对微博是否表态过。

URL

https://c.api.weibo.com/2/attitudes/exists/biz.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


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

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
id true int64 微博ID。
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": 347931327225545,
            "created_at": "Wed Aug 15 15:39:50 +0800 2012",
            "attitude": "heart",
            "last_attitude": "heart",
            "source": "<a href=\"http://meyou.weibo.com\" rel=\"nofollow\">密友</a>",
            "user": {
                // user信息
            },
            "status": {
                // status信息
            }
        },
        ...
    ],
    "hasvisible": true,
    "previous_cursor": 0,
    "next_cursor": 3479224092555669,
    "total_number": 71
}
 
//失败返回
{
    "request": "/2/attitudes/show.json",
    "error_code": "243XX",
    "error": "error message."
}

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

字段说明

其他



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


api评价