function parseResponse($response, $format) {
		if (isset ( $format )) {
			switch ($format) {
				case "pdf" :
					$theResponse = $response;
					break;
				case "json" :
					$theResponse = json_decode ( $response, true );
					break;
				default :
					$theResponse = simplexml_load_string ( $response );
					break;
			}
		}
		return $theResponse;
	}
function parseResponse($response, $format) {
		if (isset ( $format )) {
			switch ($format) {
				case "pdf" :
					$theResponse = $response;
					break;
				case "json" :
					$theResponse = json_decode ( $response, true );
					break;
				default :
					$theResponse = simplexml_load_string ( $response );
					break;
			}
		}
		return $theResponse;
	}
function parseResponse ( $ response , $ format ) { if ( isset ( $ format ) ) { switch ( $ format ) { case "pdf" : $ theResponse = $ response ; break ; case "json" : $ theResponse = json_decode ( $ response , true ) ; break ; default : $ theResponse = simplexml_load_string ( $ response ) ; break ; } } return $ theResponse ; }
Convert the response into usable data

@param string $response
the raw response from the API
@param string $format
the format of the response
@return string the concatenation of the host, API version and API method
Convert the response into usable data