Skip to content

dlion/nopenload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nopenload

OpenLoad.co node wrapper

Install

npm install nopenload

Usage

var nol = require('nopenload');

var api = new nol('fdef57504268c1b4','kdDQrTxA');

//Account Info

api.accountInfo(function(err, body) {
  console.log("--- ACCOUNT INFO ---");
  if(err) {
    console.log("ERROR N: "+err+" Msg: "+body);
  } else {
    console.log(body);
  }
});

//Upload a file

api.getUploadUrl(function(err, body) {
  if(err) {
    console.log("ERROR N: "+err+" Msg: "+body);
  } else {
    api.upload(body.result.url, "FILEPATH", function(err, body) {
      if(err) {
        console.log("ERROR N: "+err+" Msg: "+body);
      }
      console.log(body);
    });
  }
});

TODO

  • Upload
  • Remote Upload
  • Check Remote Upload Status
  • Tests

Author

Domenico Luciani

License

MIT

Releases

No releases published

Packages

No packages published