Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dlion/nopenload

OpenLoad.co node wrapper
https://github.com/dlion/nopenload

node-wrapper nodejs openload

Last synced: 23 days ago
JSON representation

OpenLoad.co node wrapper

Awesome Lists containing this project

README

        

# nopenload
OpenLoad.co node wrapper

## Install
```
npm install nopenload
```

## Usage
```js
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
- [X] Upload
- [X] Remote Upload
- [X] Check Remote Upload Status
- [ ] Tests

## Author
Domenico Luciani

## License
MIT