dropbox
a simple dropbox API interface
This can only access files/folders in it's own "app folder" in the /Apps
directory in dropbox.
ex. if the app is called image-downloader
, the folder will appear at /Apps/image-downloader
usage
const Dropbox = require("rf-dropbox")
const dropbox = new Dropbox({
token: process.env.DROPBOX_TOKEN
})
dropbox.getFiles("files").then(files => {
console.log(files)
dropbox.getLink(files[0].path_lower).then(console.log)
})
dropbox.uploadUrl(image, "/folder")
dropbox.uploadBuffer(buffer, name)
dropbox.createBuffer(url)