有没有办法通过 url 在 reddit 上提交文本 post

Is there a way to submit a text post on reddit via a url

我知道有一种方法可以将 link post 提交到 reddit。

https://www.reddit.com/r/test/submit?title=myTitle&url=http://www.exampledsfsd.com

弹出这样的页面,标题填写url

有没有办法开始提交文本post? 它真的只需要进入 "text" 选项卡并填写此页面中的 "text" 字段

澄清一下,我知道 Reddit API。我不想采用需要设置 reddit 帐户、reddit 应用程序和管理用户身份验证的方法。我实际上已经尝试过这种方法,但是将它用于我网站的其他方面存在问题。我正在寻找一些简单的东西,比如上面的提交 Link Post

只是猜到了这个,但它对我有用。使用 text 作为参数而不是 url.

https://www.reddit.com/r/test/submit?title=myTitle&text=testing

当然,您需要url对文本进行编码。

正如 CoderDennis 所说,您可以使用带有 text 参数(urlencoded)的提交页面。您还应该将 selftext 设置为 true,这会将显示的选项卡设置为自己的 post 选项卡(尽管它不是必需的,因为它是根据 text 参数推断出来的)。

doc for /api/submit still apply to that page (although only a few). You can see exactly how it works by looking at the code used for the actual page on reddit's GitHub (here and here)

中的一些东西

要提交文本 post,您需要的是这样的 URL:

https://www.reddit.com/r/test/submit?title=Title%20to%20use&<strong>selftext=true</strong>&<strong>text</strong>=Urlencoded%20self%20post%20text

这将打开 /r/test 的提交页面以提交新的 post 标题为“Title to use”,以及 post body “Urlencoded self post text”。

这里是所有的参数,供参考:

  • title: post 提交的标题
  • url: URL 提交给
  • text: 自己的文字post
  • selftext:是否默认为自文本选项卡(true 这样做)。如果 text 存在,那么它将默认显示该选项卡。
  • resubmit:是否重新提交post(如果不存在并且提交一个linkpost,另一个post已经link 在那里,您将被带到 post 而不是重新提交的选项。