微博
微博博文评论 API
获取微博的一级评论。每次请求消耗 1 积分。
POST/api/v1/weibo/post/comments
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonidstringrequired博文 id
Example: 5092682368025584
countinteger每页返回的条数。取值 1-50。
max_idstring上一次响应返回的分页游标
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/post/comments", {"id": "5092682368025584"})
print(result)Response
"max_id": "139291743469237",
"total": 747
},
"response_time": 1437
}