I know there\'s a way to submit a link post to reddit.
https://www.reddit.com/r/test/submit?title=myTitle&url=http://www.exampledsfsd.com
w
As CoderDennis said, you can use the submit page with the text
parameter (urlencoded). You should also set selftext
to true, which sets the displayed tab to the self post tab (although it's not required as that is inferred based off of the text
parameter).
Some of the things in the 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)
For submitting a text post, what you'll want is a URL like this:
https://www.reddit.com/r/test/submit?title=Title%20to%20use&selftext=true&text=Urlencoded%20self%20post%20text
This will open the submit page for /r/test
to submit a new post with the title "Title to use
", and a post body of "Urlencoded self post text
".
Here are all of the parameters, for reference:
title
: Title of the post to submiturl
: URL to submit totext
: Text of the self postselftext
: Whether to default to the self text tab (true
to do so). If text
is present, then it will default to displaying that tab anyways.resubmit
: Whether to resubmit the post (if not present and submitting a link post, and another post already links there, you will be taken to that post instead with an option to resubmit it).