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

2

u/[deleted] Apr 01 '16

Nevermind. I should have read the man pages first... :/

Found what I needed.

3

u/GoldenSights Apr 02 '16

It's just a string that describes the script, and includes your username in case the admins have to contact you. Something like

"/u/Forgot-My-Name_again automatic robin voter v1.0"

is probably sufficient. Personally I don't know whether the admins are condoning autovoters, but hopefully they don't block this.

 

Oh, you were too quick to edit. I'll leave this for anyone that needs it.