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 02 '16
That's definitely possible (I haven't been in enough rooms to test it thoroughly), but I'm not sure why the server would need the client to provide that information.