lib/request.js
function prepare(data, consumerkey) {
	var prop;
	data = data || {};

	for (prop in data) {
		if (data.hasOwnProperty(prop)) {
			if (_.isDate(data[prop])) {
				data[prop] = helpers.toYYYYMMDD(data[prop]);
			}
		}
	}

	data.oauth_consumer_key = consumerkey;

	return data;
}
function prepare(data, consumerkey) {
	var prop;
	data = data || {};

	for (prop in data) {
		if (data.hasOwnProperty(prop)) {
			if (_.isDate(data[prop])) {
				data[prop] = helpers.toYYYYMMDD(data[prop]);
			}
		}
	}

	data.oauth_consumer_key = consumerkey;

	return data;
}
function prepare ( data , consumerkey ) { var prop ; data = data || { } ; for ( prop in data ) { if ( data . hasOwnProperty ( prop ) ) { if ( _ . isDate ( data [ prop ] ) ) { data [ prop ] = helpers . toYYYYMMDD ( data [ prop ] ) ; } } } data . oauth_consumer_key = consumerkey ; return data ; }
Formats request parameters as expected by the API.  - @param {Object} data - hash of pararameters - @param {String} consumerkey - consumer key - @return {String} - Encoded parameter string
Formats request parameters as expected by the API . -