C/2/attitudes/exists/biz

跳转到: 导航, 搜索
 
第10行: 第10行:
 
//成功返回
 
//成功返回
 
{
 
{
     "attitudes": [
+
     "3488846782126089": 1,
        {
+
     "3488846782246082": 0
            "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",
+
     "request": "/2/attitudes/exists.json",
 
     "error_code": "243XX",
 
     "error_code": "243XX",
 
     "error": "error message."
 
     "error": "error message."

2018年7月4日 (三) 18:16的最后版本

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授权后获得。
ids true string 微博的ID,多个之间用逗号分隔,最多不超过200个。

注意事项

返回结果

JSON示例

//成功返回
{
    "3488846782126089": 1,
    "3488846782246082": 0
}
 
//失败返回
{
    "request": "/2/attitudes/exists.json",
    "error_code": "243XX",
    "error": "error message."
}

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

字段说明

其他



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


文档更新时间: 2018-07-04
api评价