Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dlion/nopenload
- Owner: dlion
- License: mit
- Created: 2016-02-07T15:30:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T16:45:40.000Z (over 8 years ago)
- Last Synced: 2024-09-13T20:18:44.976Z (about 2 months ago)
- Topics: node-wrapper, nodejs, openload
- Language: JavaScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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