r/redditdev • 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_id is the UUID of the room
  • room_name is the name of the room that appears in the page header
  • winning_vote is always the string NOVOTE, whatever that means
  • vote is the option that the user votes for -- one of ABANDON, INCREASE, or CONTINUE.

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

11 comments sorted by

View all comments

Show parent comment

1

u/13steinj Apr 02 '16

shrug, maybe to prove it's not a bot? Could be a (very crappy, since all uservotes are given in the html of the page) bot prevention method.

Are we uh, even allowed to make bots on this? (Ping to /u/powerlanguage)