/** * Custom request method so that we can force JSON for Flickr, which otherwise * uses XML. * @param string $url The URL to request * @param array $params Any additional parameters requried for this reqeust * @return Mixed with either a Keyring_Error, or a decoded JSON response object */ function request($url, array $params = array()) { // http://www.flickr.com/services/api/response.json.html $url = add_query_arg(array('format' => 'json', 'nojsoncallback' => 1), $url); return parent::request($url, $params); }
function request($url, array $params = array()) { $url = add_query_arg(array('format' => 'json'), $url); return parent::request($url, $params); }