1.2.0 • Published 8 years ago

nopenload v1.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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