访问用户post微博报错20112

Weibo error 20112 when attempting to access a user's post

我正在尝试通过 2/statuses/show 获取用户的微博 post。我可以通过自己的帐户获得 posts,但是当我尝试获得另一个用户的 post 时,出现错误:

{"error":"Permission Denied!","error_code":20112,"request":"/2/statuses/show.json"}

Weibo docs 说(通过 google 翻译):

20112: As the author privacy settings, you do not have permission to view this microblogging

这是否意味着 post 的作者需要更新他们的权限以允许开发者帐户访问?

任何帖子都可以声明为不可见,但对于微博作者本人或受信任的群体。

所以隐私设置导致了你的问题。

我也遇到了这个问题。但是,您仍然可以使用 user_id 和 mid(在 base62 中)访问 post。例如,您无法从 API(它的 ID 是 10031139424)中获取 this post,但您仍然可以从您的网络浏览器中看到它。

另一种方法是从其手机 url 获取 post。然后,您可以从 html.

的主体中获取其包含在变量 render_data 中的 json