0

These are the headers I send with my get request to https://oauth.reddit.com/api/morechildren in python, however I get hit with a 403 error each time I try it. In the #code it seems like either the link is incorrect or that I'm not 'allowed' to see it.

('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')
hehe
  • 3
  • 3
  • use this link `ssl.reddit.com` vs `oauth.reddit.com`, You can read more in reddit https://www.reddit.com/r/redditdev/comments/2m083c/add_oauth_support_for_apimorechildrenjson/ – RaminNietzsche Mar 29 '17 at 13:48
  • I read it but the oauth link is the one I'm supposed to use. – hehe Mar 29 '17 at 14:27
  • You need to send the parameters in POST form values rather than JSON. Here's some examples: http://stackoverflow.com/questions/35212341/angular2-http-post-request-parameters – RaminNietzsche Mar 29 '17 at 14:29
  • Ahh thank you, the api specifies that GET could be used in place of a post request. – hehe Mar 29 '17 at 14:35

1 Answers1

0

You need to send the parameters in POST form values rather than JSON. Here's some examples.

Community
  • 1
  • 1
RaminNietzsche
  • 2,683
  • 1
  • 20
  • 34