C/2/comments/hotflow

跳转到: 导航, 搜索
(以“{{Api_desc_business| uri=2/comments/hotflow| desc=获取评论的热门流| httpMethod=GET| needAuth=true| params= {{api_args|mid|false|int64|需要查询的微博id...”为内容创建页面)
 
第1行: 第1行:
 
{{Api_desc_business|
 
{{Api_desc_business|
uri=2/comments/hotflow|
+
uri=comments/hotflow|
 
desc=获取评论的热门流|
 
desc=获取评论的热门流|
 
httpMethod=GET|
 
httpMethod=GET|

2019年12月13日 (五) 15:16的版本

comments/hotflow

获取评论的热门流

URL

https://c.api.weibo.com/2/comments/hotflow.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录

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

访问授权限制

{{{rateLimit}}}

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
mid false int64 需要查询的微博id。
object_id false string 对象ID。
max_id false int64 若指定此参数,则返回ID小于或等于max_id的评论,默认为0。此值平台会下发选项值,需要透传。
page false int 返回结果的页码,默认为1。
count false int 返回结果的条数数量,最大不超过200,默认为15。
child_comment_count false int 二级评论展示条数,默认为3。
max_id_type false int max_id的类型(热门流or时间序),0-热门流,1-时间序。此值平台会下发选项值,需要透传。
is_show_ad false int 是否下发广告,0-不下发,1-下发。默认0
ad_type false int 给测试用,按位来控制出广告、转发、推荐(第1位:出广告、第2位:出转发、第3位:出推荐),默认为7即全部都出
ad_param false string 广告参数,包含uid,from值等
ext_param false string 透传平台下发的扩展参数,json格式
lack false int 评论内容是否缺失 (用于展示评论列表存在内容被过滤时, 展示文案用。默认为0,即平台进行内部判断,为1,则直接下发文案。)

模板:Arg encoded

注意事项

返回结果

JSON示例

//成功返回
{
{
    "id":4009501902377333,
    "status":{
       ......
    },
    "root_comments":[
        {
            "created_at":"Wed Aug 17 17:24:52 +0800 2016",
            "id":4009513159609875,
            "rootid":4009513159609875,
            "floor_number":221,
            "text":"评论22222 6739",
            "source_allowclick":0,
            "source_type":1,
            "source":"<a href="http://app.weibo.com/t/feed/5xCS0B" rel="nofollow">微博手机版</a>",
            "user":Object{...},
            "mid":"4009513159609875",
            "idstr":"4009513159609875",
            "url_objects":[

            ],
            "liked":false,
            "comments":[

            ],
            "max_id":0,
            "total_number":0,
            "isLikedByMblogAuthor":false
        },
        .....
    ],
    "max_id":552994035200466,
    "max_id_type":0,
    "total_number":220,
    "state_code":0,
    "lack":1 // 如果评论列表内容缺失或者端上传递的参数'lack'为1, 则会返回1,否则什么都不返回
}
    
//失败返回
{
    "request": "/2/comments/by_me.json",
    "error_code": "202XX",
    "error": "error message."
}

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

字段说明

{{{resultDes}}}

其他



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


api评价