Filen.io API for Node.JS
- Login
- Account storage usage
- Directory listing
- Download
- Upload
Import Filen
class to your project.
const Filen = require('./filen');
Class takes two arguments. First one is email and second one is password.
const filen = new Filen('<email>', '<password>')
Authentication does not happen immediately (will happen in the future) so you need to call the login
method.
filen.login().then((status) => {
console.log(status)
})
Listing the usage works by calling usage
method.
filen.usage().then((info) => {
console.log(info)
})
This info is an object which looks similar to this: ADD LATER
ADD LATER
Full example can be found in example.js.