【问题标题】:Get all comments help, API returns a 403 error获取所有评论帮助,API 返回 403 错误
【发布时间】:2017-03-29 22:37:34
【问题描述】:

这些是我在 python 中随 get 请求发送给 https://oauth.reddit.com/api/morechildren 的标头,但是每次尝试时都会遇到 403 错误。在#code 中,链接似乎不正确或者我没有“被允许”看到它。

('User-Agent', 'python:xxxxx:xxxxx by (by /u/XXXXXXXXXXXX)')
('Authorization', 'bearer <TOKEN>')
('children', <comma seperated list of ID36s for comments>)
('link_id', 't3_<ID36>')
('sort', 'confidence')
('api_type', 'json')

【问题讨论】:

标签: python api reddit


【解决方案1】:

您需要以 POST 表单值而不是 JSON 格式发送参数。 Here's some examples.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-20
    • 2020-05-25
    • 2016-03-21
    • 1970-01-01
    相关资源
    最近更新 更多