dist/hello.all.js
function formatUrl(p, callback) {

			// Are we signing the request?
			var sign;

			// OAuth1
			// Remove the token from the query before signing
			if (p.authResponse && p.authResponse.oauth && parseInt(p.authResponse.oauth.version, 10) === 1) {

				// OAUTH SIGNING PROXY
				sign = p.query.access_token;

				// Remove the access_token
				delete p.query.access_token;

				// Enfore use of Proxy
				p.proxy = true;
			}

			// POST body to querystring
			if (p.data && (p.method === 'get' || p.method === 'delete')) {
				// Attach the p.data to the querystring.
				_this.extend(p.query, p.data);
				p.data = null;
			}

			// Construct the path
			var path = _this.qs(p.url, p.query);

			// Proxy the request through a server
			// Used for signing OAuth1
			// And circumventing services without Access-Control Headers
			if (p.proxy) {
				// Use the proxy as a path
				path = _this.qs(p.oauth_proxy, {
					path: path,
					access_token: sign || '',

					// This will prompt the request to be signed as though it is OAuth1
					then: p.proxy_response_type || (p.method.toLowerCase() === 'get' ? 'redirect' : 'proxy'),
					method: p.method.toLowerCase(),
					suppress_response_codes: true
				});
			}

			callback(path);
		}
function formatUrl(p, callback) {

			// Are we signing the request?
			var sign;

			// OAuth1
			// Remove the token from the query before signing
			if (p.authResponse && p.authResponse.oauth && parseInt(p.authResponse.oauth.version, 10) === 1) {

				// OAUTH SIGNING PROXY
				sign = p.query.access_token;

				// Remove the access_token
				delete p.query.access_token;

				// Enfore use of Proxy
				p.proxy = true;
			}

			// POST body to querystring
			if (p.data && (p.method === 'get' || p.method === 'delete')) {
				// Attach the p.data to the querystring.
				_this.extend(p.query, p.data);
				p.data = null;
			}

			// Construct the path
			var path = _this.qs(p.url, p.query);

			// Proxy the request through a server
			// Used for signing OAuth1
			// And circumventing services without Access-Control Headers
			if (p.proxy) {
				// Use the proxy as a path
				path = _this.qs(p.oauth_proxy, {
					path: path,
					access_token: sign || '',

					// This will prompt the request to be signed as though it is OAuth1
					then: p.proxy_response_type || (p.method.toLowerCase() === 'get' ? 'redirect' : 'proxy'),
					method: p.method.toLowerCase(),
					suppress_response_codes: true
				});
			}

			callback(path);
		}
function formatUrl ( p , callback ) { // Are we signing the request? var sign ; // OAuth1 // Remove the token from the query before signing if ( p . authResponse && p . authResponse . oauth && parseInt ( p . authResponse . oauth . version , 10 ) === 1 ) { // OAUTH SIGNING PROXY sign = p . query . access_token ; // Remove the access_token delete p . query . access_token ; // Enfore use of Proxy p . proxy = true ; } // POST body to querystring if ( p . data && ( p . method === 'get' || p . method === 'delete' ) ) { // Attach the p.data to the querystring. _this . extend ( p . query , p . data ) ; p . data = null ; } // Construct the path var path = _this . qs ( p . url , p . query ) ; // Proxy the request through a server // Used for signing OAuth1 // And circumventing services without Access-Control Headers if ( p . proxy ) { // Use the proxy as a path path = _this . qs ( p . oauth_proxy , { path : path , access_token : sign || '' , // This will prompt the request to be signed as though it is OAuth1 then : p . proxy_response_type || ( p . method . toLowerCase ( ) === 'get' ? 'redirect' : 'proxy' ) , method : p . method . toLowerCase ( ) , suppress_response_codes : true } ) ; } callback ( path ) ; }
Format URL Constructs the request URL, optionally wraps the URL through a call to a proxy server Returns the formatted URL
Format URL Constructs the request URL optionally wraps the URL through a call to a proxy server Returns the formatted URL