且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

调用 Reddit API 时出现 403 错误.

更新时间:2022-10-15 16:28:54

参考 listingcontroller.py (这里) :

    if (where in ('saved', 'hidden') and not 
        ((c.user_is_loggedin and c.user._id == vuser._id) or
          c.user_is_admin)):
        return self.abort403()

您可以清楚地看到,您必须以 username 或管理员身份登录才能获取 savedhidden 数据 -否则你会收到 403 错误.

you can clearly see that you must be logged in as username or be an admin in order to get the saved or hidden data - otherwise you get a 403 error.