微博
微博推荐时间线 API
获取推荐的首页时间线。每次请求消耗 1 积分。
POST/api/v1/weibo/user/recommend-timeline
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/jsonrefreshinteger设置后获取时间线的最新内容,而不是缓存的内容。
group_idstring时间线分组 id,取自之前的响应。
containeridstring微博 container id,取自之前的响应。
extparamstring原样传给微博的附加参数,取自之前的响应。
max_idstring上一次响应返回的分页游标。请求第一页时不传。
countinteger每页返回的条数。取值 1-50。
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.weibo.request("/api/v1/weibo/user/recommend-timeline", {})
print(result)Response
"max_id": "1"
},
"response_time": 2074
}