. * * * The author of this software is Mashape, Inc. * For any question or feedback please contact us at: support@mashape.com * */ class HttpUtils { const JSON_PARAM_BODY = "88416847677069008618"; public static function cleanParameters(&$parameters) { if ($parameters == null) { $parameters = array(); } else if (is_array($parameters)) { // Remove null parameters $keys = array_keys($parameters); for ($i = 0;$ihandleParams()); } else if ($handler instanceof HeaderAuthentication) { $headers = array_merge($headers, $handler->handleHeaders()); } else if ($handler instanceof Oauth10aAuthentication) { $headers = array_merge($headers, $handler->handleHeaders()); } else if ($handler instanceof Oauth2Authentication) { $parameters = array_merge($parameters, $handler->handleParams()); } } return array($headers, $parameters); } public static function generateClientHeaders() { $headers = "User-Agent: mashape-php/1.0: "; return $headers; } } ?>