Skip to content

Instantly share code, notes, and snippets.

@Said210
Created September 7, 2016 16:33
Show Gist options
  • Save Said210/8a6c2adc8cf8c12845b69332eb7e8644 to your computer and use it in GitHub Desktop.
Save Said210/8a6c2adc8cf8c12845b69332eb7e8644 to your computer and use it in GitHub Desktop.
/*
* GO GIVE <3 TO A COUPLE HELLOTAB POSTS
* where
* i = Initial value, 100 most of the times
* g = Goal value, (999?)
* post = HelloTab post token
*/
function like_post(i, g, post){
if (i < g) {
$.post("https://hellotab.com/api/v2/9f6ea9d29018a908f914ad1834d66"+i+"/messages/"+post+"/like")
.always(function(data){
console.log(data);
like_post(i+1, g, post);
});
}else{
console.log("Bye o/");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment