lib/request.js
function get(endpointInfo, requestData, headers, credentials, logger,
	callback) {

	var normalisedData = prepare(requestData, credentials.consumerkey);
	var fullUrl = endpointInfo.url + '?' + qs.stringify(normalisedData);
	var hostInfo = {
		host: endpointInfo.host,
		port: endpointInfo.port
	};

	// Decide whether to make an oauth signed request or not
	if (endpointInfo.authtype) {
		hostInfo.host = endpointInfo.sslHost;
		dispatchSecure(endpointInfo.url, 'GET', requestData, headers,
			endpointInfo.authtype, hostInfo, credentials, logger,
			callback);
	} else {
		dispatch(endpointInfo.url, 'GET', requestData, headers, hostInfo,
			credentials, logger, callback);
	}
}
function get(endpointInfo, requestData, headers, credentials, logger,
	callback) {

	var normalisedData = prepare(requestData, credentials.consumerkey);
	var fullUrl = endpointInfo.url + '?' + qs.stringify(normalisedData);
	var hostInfo = {
		host: endpointInfo.host,
		port: endpointInfo.port
	};

	// Decide whether to make an oauth signed request or not
	if (endpointInfo.authtype) {
		hostInfo.host = endpointInfo.sslHost;
		dispatchSecure(endpointInfo.url, 'GET', requestData, headers,
			endpointInfo.authtype, hostInfo, credentials, logger,
			callback);
	} else {
		dispatch(endpointInfo.url, 'GET', requestData, headers, hostInfo,
			credentials, logger, callback);
	}
}
function get ( endpointInfo , requestData , headers , credentials , logger , callback ) { var normalisedData = prepare ( requestData , credentials . consumerkey ) ; var fullUrl = endpointInfo . url + '?' + qs . stringify ( normalisedData ) ; var hostInfo = { host : endpointInfo . host , port : endpointInfo . port } ; // Decide whether to make an oauth signed request or not if ( endpointInfo . authtype ) { hostInfo . host = endpointInfo . sslHost ; dispatchSecure ( endpointInfo . url , 'GET' , requestData , headers , endpointInfo . authtype , hostInfo , credentials , logger , callback ) ; } else { dispatch ( endpointInfo . url , 'GET' , requestData , headers , hostInfo , credentials , logger , callback ) ; } }
Makes a GET request to the API.  - @param {Object} endpointInfo - Generic metadata about the endpoint to hit. - @param {Object} requestData - Parameters for this specific request. - @param {Object} headers - Custom headers for this request. - @param {Object} credentials - OAuth consumerkey and consumersecret. - @param {Object} logger - An object implementing the npm log levels. - @param {Function} callback - The callback to call with the response.
Makes a GET request to the API . -