使用 Apigee 学习 reddit JSON API。我如何提交故事?
根据 https://github.com/reddit/reddit/wiki/API 我需要至:
“将以下内容发布到 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
我相信呃是 modhash <
http://www.reddit.com/api/login/joe?user=joe&passwd=passw0rd&api_type=json
但每当我尝试提交时,我都会得到:
a href="https://apigee.com/console/apigee-console-snapshots-1317445200000_ba798aaf-165d-40c3- 8aec-17673087f9ff/rendersnapshotview" rel="noreferrer">https://apigee.com/console/apigee-console-snapshots-1317445200000_ba798aaf-165d-40c3-8aec-17673087f9ff/rendersnapshotview
任何帮助将不胜感激。
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:
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您在发布提交内容时发回他们随登录响应发送/设置的
reddit_session
cookie。您需要这个以及uh
/modhash
。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 theuh
/modhash
.