Created
April 2, 2016 03:16
-
-
Save AnEmortalKid/248f7226a7b34dd506802b813aadde9b to your computer and use it in GitHub Desktop.
JQuery to post to robin reddit messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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