Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Client = require ('node-rest-client').Client;
- const client = new Client({ user: "XXX", password: "XXX" });
- //-----------------------------------------------------------------------------------
- var urls = [/* 2many 4 pasebin*/];
- for (let i =0; i<urls.length;i++) {
- client.post("http://7d89f372.ngrok.io/uploads.json",
- //-----------------------------------------------------------------------------------
- {
- data: {
- "upload": {
- "source": urls[i],
- "rating": "s",
- "tag_string": "tagme"
- }
- },
- headers: {'Content-Type': 'application/json'}
- },
- //-----------------------------------------------------------------------------------
- (data, response) => {
- console.log(data);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement