src/request-helpers.js
function(url, method = 'get', body = undefined) {
		var deferred = Q.defer();

		this.extendedRequest(url, method, body)
			.then((res) => { deferred.resolve(res.body); })
			.catch((err) => { deferred.reject(err); });

		return deferred.promise;
	}
function(url, method = 'get', body = undefined) {
		var deferred = Q.defer();

		this.extendedRequest(url, method, body)
			.then((res) => { deferred.resolve(res.body); })
			.catch((err) => { deferred.reject(err); });

		return deferred.promise;
	}
function ( url , method = 'get' , body = undefined ) { var deferred = Q . defer ( ) ; this . extendedRequest ( url , method , body ) . then ( ( res ) => { deferred . resolve ( res . body ) ; } ) . catch ( ( err ) => { deferred . reject ( err ) ; } ) ; return deferred . promise ; }
Returns only the response body
Returns only the response body