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 2 years ago

Package Health Score

62 / 100
Full package analysis