How to use the dropbox/lib.Dropbox function in dropbox

To help you get started, we’ve selected a few dropbox examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LN-Zap / zap-desktop / electron / walletBackup / dropbox / db.js View on Github external
async function createConnection({ clientId, authRedirectUrl, tokens }) {
  const accessTokens = tokens || (await api.createAuthWindow(clientId, authRedirectUrl))
  const client = new Dropbox({ clientId, accessToken: accessTokens.access_token, fetch })
  return { client, accessTokens }
}
github LN-Zap / zap-desktop / electron / walletBackup / dropbox / dbApi.js View on Github external
function createAuthUrl(clientId, redirectUrl) {
  const dbx = new Dropbox({ clientId, fetch })
  return dbx.getAuthenticationUrl(redirectUrl)
}

dropbox

The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments.

MIT
Latest version published 1 year ago

Package Health Score

65 / 100
Full package analysis