Created
September 7, 2016 16:33
-
-
Save Said210/8a6c2adc8cf8c12845b69332eb7e8644 to your computer and use it in GitHub Desktop.
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
/* | |
* 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