How to use the dropbox.Xhr 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 enyojs / ares-project / hermes / fsDropbox.js View on Github external
FsDropbox.prototype.configure = function(config, next) {
	this.log("FsDropbox.configure(): config:", config);
	this.parseProxy(config);
	if (this.httpAgent) {
		dropbox.Xhr.Request.nodejsSet({httpAgent: this.httpAgent});
	}
	if (this.httpsAgent) {
		dropbox.Xhr.Request.nodejsSet({httpsAgent: this.httpsAgent});
	}
	if (next) {
		next();
	}
};

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