Question

Accordng to https://github.com/reddit/reddit/wiki/API I need to:

"Post the following to http://www.reddit.com/api/submit:

uh=f0f0f0f0&kind=link&url=yourlink.com&sr=funny
&title=omg-look-at-this&id%23newlink&r=funny&renderstyle=html

I believe uh is the modhash that that you get after loging in like this:

http://www.reddit.com/api/login/joe?user=joe&passwd=passw0rd&api_type=json

But whenever I try to make a submission, I get this:

https://apigee.com/console/apigee-console-snapshots-1317445200000_ba798aaf-165d-40c3-8aec-17673087f9ff/rendersnapshotview

Any help would be greatly appreciated.

Was it helpful?

Solution

Be sure that you're sending back the reddit_session cookie they send/set with the login response when you post your submission. You need this as well as the uh/modhash.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top