lib/paperspace.js
function paperspace(options) {
	if (options && !isAnyAuthOptionPresent(options)) {
		throw NO_CREDS;
	}

	var api = {};

	eachEndpoint(function _eachEndpoint(namespace, name, method) {
		if (!api[namespace]) api[namespace] = {};
		api[namespace][name] = wrapMethod(method, options);
	});

	return api;
}
function paperspace(options) {
	if (options && !isAnyAuthOptionPresent(options)) {
		throw NO_CREDS;
	}

	var api = {};

	eachEndpoint(function _eachEndpoint(namespace, name, method) {
		if (!api[namespace]) api[namespace] = {};
		api[namespace][name] = wrapMethod(method, options);
	});

	return api;
}
function paperspace ( options ) { if ( options && ! isAnyAuthOptionPresent ( options ) ) { throw NO_CREDS ; } var api = { } ; eachEndpoint ( function _eachEndpoint ( namespace , name , method ) { if ( ! api [ namespace ] ) api [ namespace ] = { } ; api [ namespace ] [ name ] = wrapMethod ( method , options ) ; } ) ; return api ; }
Entrypoint to the API for those who want to use a certain set of credentials for authenticating all requests
Entrypoint to the API for those who want to use a certain set of credentials for authenticating all requests