4 upvotes, 1 direct replies (showing 1)
View submission: Bug: "gated" subreddits inaccessible via OAuth
There was a post here two days ago about this[1] that had a solution, but the author deleted it. I'll see if I can reproduce the solution.
1: https://www.reddit.com/r/redditdev/comments/thut8k/some_subreddits_api_are_gated_now/
Edit:
const https = require('https') const options = { hostname: 'api.reddit.com', path: '/r/MorbidReality/about', headers: { 'user-agent': 'test user agent', cookie: 'edgebucket=; _options={%22pref_gated_sr_optin%22:true}', }, }\ const req = https.request(options, res => { res.on('data', d => { process.stdout.write(d) }) }) req.end()
There's the code he had. So looks like you can get it working if you format the cookie the right way.
Comment by talklittle at 21/03/2022 at 20:34 UTC
4 upvotes, 0 direct replies
Thanks but doesn't work on oauth.reddit.com.