开发者

Learning the reddit JSON API using Apigee. How do I submit a story?

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

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

uh=f0开发者_StackOverflow社区f0f0f0&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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜