Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tobymarsden/f5e84e545e969f929b1ed0d4218eed14 to your computer and use it in GitHub Desktop.
Save tobymarsden/f5e84e545e969f929b1ed0d4218eed14 to your computer and use it in GitHub Desktop.
Dropbox integration
const Dropbox = require('dropbox').Dropbox
const fetch = require('isomorphic-fetch')
// var filePath = ...
// var sourceUrl = ...
var api = new Dropbox({
fetch,
accessToken: shop.get('dropbox_access_token')
})
var res = await api.filesSaveUrl({
path: filePath
url: sourceUrl
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment