function emimage_flickr_request in Embedded Media Field 6
this is a wrapper for emimage_request_xml that includes flickr's api key
5 calls to emimage_flickr_request()
- emimage_flickr_data in contrib/
emimage/ providers/ flickr.inc - emimage_flickr_embedded_link in contrib/
emimage/ providers/ flickr.inc - hook emimage_PROVIDER_embedded_link($code) returns a link to view the content at the provider's site
- emimage_flickr_image_title in contrib/
emimage/ providers/ flickr.inc - Implements emimage_PROVIDER_image_title.
- emimage_flickr_image_url in contrib/
emimage/ providers/ flickr.inc - Implements emimage_PROVIDER_image_url.
- emimage_flickr_import in contrib/
emimage/ providers/ flickr.inc - This allows flickr photosets to be imported into nodes
File
- contrib/
emimage/ providers/ flickr.inc, line 115 - This include processes flickr.com image files for use by emfield.module.
Code
function emimage_flickr_request($method, $args = array(), $cached = TRUE) {
// display an error if we don't have an api key yet
emimage_flickr_error_check();
$args['api_key'] = trim(variable_get('emimage_flickr_api_key', ''));
if ($secret = trim(variable_get('emimage_flickr_api_secret', ''))) {
$args['secret'] = md5($secret . $arghash);
}
$args['method'] = $method;
$args['format'] = 'php_serial';
$xml = module_invoke('emfield', 'request_xml', 'flickr', EMIMAGE_FLICKR_REST_ENDPOINT, $args, $cached, FALSE, FALSE, TRUE);
return $xml;
}