Advertisement
fadhiilrachman

Royal Likes App API Access

Sep 27th, 2016
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. [=] Endpoint :
  2. [*] Likes :
  3. https://api-rl.fadhiilrachman.id/[USERNAME_IG/USERID_IG]/likes
  4. ! Ganti [USERNAME_IG/USERID_IG] menjadi username instagram anda
  5. [*] Follow :
  6. https://api-rl.fadhiilrachman.id/[USERNAME_IG/USERID_IG]/follow
  7. ! Ganti [USERNAME_IG/USERID_IG] menjadi username instagram anda
  8. [=] Parameter :
  9. > limit => jumlah worker yg akan di proses
  10. ! ket : jika tidak ada param limit maka akan unlimited.
  11. > returnType => tipe data hasil yg akan ditampilkan
  12. ! ket : jika tidak ada param returnType maka otomatis pilih html.
  13. Parameternya adalah sbb :
  14. - html (default)
  15. - json
  16. - debug
  17. - debug_json
  18. [=] Contoh :
  19. https://api-rl.fadhiilrachman.id/dagelan/follow?limit=1&returnType=debug_json
  20. [=] Script buat set ke cronjob google script :
  21. [-------------------------------------------------------------]
  22. function likes_royalLikes() {
  23. // Perhatian !! hanya USERNAME_INSTAGRAM diubah menjadi username ig anda dan angka 1 utk limit, tulis 0 utk unlimited
  24. var username = "USERNAME_INSTAGRAM", limit = "1",
  25. opt = {
  26. "method": "GET",
  27. "payload": {
  28. },
  29. "muteHttpExceptions": true,
  30. "followRedirects" : true,
  31. };
  32. UrlFetchApp.fetch('https'+'://api-rl.fadhiilrachman'+'.id/'+username+'/likes?limit='+limit+'&returnType=json',opt);
  33. }
  34. [-------------------------------------------------------------]
  35. function follow_royalLikes() {
  36. // Perhatian !! hanya USERNAME_INSTAGRAM diubah menjadi username ig anda dan angka 1 utk limit, tulis 0 utk unlimited
  37. var username = "USERNAME_INSTAGRAM", limit = "1",
  38. opt = {
  39. "method": "GET",
  40. "payload": {
  41. },
  42. "muteHttpExceptions": true,
  43. "followRedirects" : true,
  44. };
  45. UrlFetchApp.fetch('https'+'://api-rl.fadhiilrachman'+'.id/'+username+'/follow?limit='+limit+'&returnType=json',opt);
  46. }
  47. [-------------------------------------------------------------]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement