Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AnEmortalKid/248f7226a7b34dd506802b813aadde9b to your computer and use it in GitHub Desktop.
Save AnEmortalKid/248f7226a7b34dd506802b813aadde9b to your computer and use it in GitHub Desktop.
JQuery to post to robin reddit messages
$.ajax({
url: 'https://www.reddit.com/api/robin/2e53fb96-f87f-11e5-be28-0e31fc1b0d95/message',
type: 'post',
data: {
room_id:'2e53fb96-f87f-11e5-be28-0e31fc1b0d95',
room_name:'DeKIOaoerdtsleHIpoorozisesnkrdisramitFer71inicok',
winning_vote:'NOVOTE',
api_type:'json',
message:'fuck the police lol',
author:'',
messageClass:'message',
userClass:'user',
flairClass:'no-flair'
},
headers :
{
"x-modhash":'uffqx5x3yl6a1e870156446dd0ddda8f05779dbc0f180bcc58',
"x-requested-with":'XMLHttpRequest'
},
dataType: 'json',
success: function (data)
{
console.info(data)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment