r/redditdev • u/not_an_aardvark snoowrap author • Apr 01 '16
Reddit Robin
(If you're out of the loop, see here)
The endpoint to vote to grow/stay/abandon a room is:
POST /api/robin/<room ID>/vote
It accepts the form parameters room_id, room_name, winning_vote, and vote.
room_idis the UUID of the roomroom_nameis the name of the room that appears in the page headerwinning_voteis always the stringNOVOTE, whatever that meansvoteis the option that the user votes for -- one ofABANDON,INCREASE, orCONTINUE.
As far as I can tell, these endpoints do not work with OAuth, so modhashes are necessary.
I made a proof-of-concept script that automatically gets the user's current room and votes to "grow".
Enjoy your crontabs!
13
Upvotes
View all comments
Show parent comment
1
u/not_an_aardvark snoowrap author Apr 04 '16
It hasn't been released yet as far as I know. (I'm not affiliated with reddit, in case it wasn't clear.)