Post to Reddit via URL

 ̄綄美尐妖づ 提交于 2019-12-03 11:08:20
Bill the Lizard

There are several ways to do this, depending on exactly what kind of application you have.

  1. If you're making something interactive, you can take a user to the submit page with a URL and title already filled in. The following URL will open the reddit submit form with a link to this question:

    http://www.reddit.com/submit?url=https://stackoverflow.com/questions/24823114/post-to-reddit-via-url&title=Post%20to%20Reddit%20via%20URL

  2. If you just want people to be able to submit your site or blog post to reddit, you can use a reddit button on your page instead.

  3. If you're writing an app or a script where you need to post a URL to reddit, you can use the /api/submit route in the reddit API. If the user that is submitting the link has less than 2 link karma, then a CAPTCHA will probably be given.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!