Advertisement
I_jony_I

Untitled

May 10th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Client = require ('node-rest-client').Client;
  2. const client = new Client({ user: "XXX", password: "XXX" });
  3. //-----------------------------------------------------------------------------------
  4. var urls = [/* 2many 4 pasebin*/];
  5. for (let i =0; i<urls.length;i++) {
  6.     client.post("http://7d89f372.ngrok.io/uploads.json",
  7. //-----------------------------------------------------------------------------------
  8.         {
  9.             data: {
  10.                 "upload": {
  11.                     "source": urls[i],
  12.                     "rating": "s",
  13.                     "tag_string": "tagme"
  14.                 }
  15.             },
  16.             headers: {'Content-Type': 'application/json'}
  17.         },
  18. //-----------------------------------------------------------------------------------
  19.         (data, response) => {
  20.             console.log(data);
  21.         });
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement