You are here

function image_ncck_flickr_request in Embedded Media Field 5

this is a wrapper for image_ncck_request_xml that includes flickr's api key

5 calls to image_ncck_flickr_request()
image_ncck_flickr_data in contrib/image_ncck/providers/flickr.inc
image_ncck_flickr_embedded_link in contrib/image_ncck/providers/flickr.inc
hook image_ncck_PROVIDER_embedded_link($code) returns a link to view the content at the provider's site
image_ncck_flickr_image_title in contrib/image_ncck/providers/flickr.inc
implement image_ncck_PROVIDER_image_title
image_ncck_flickr_image_url in contrib/image_ncck/providers/flickr.inc
implement image_ncck_PROVIDER_image_url
image_ncck_flickr_import in contrib/image_ncck/providers/flickr.inc
This allows flickr photosets to be imported into nodes

File

contrib/image_ncck/providers/flickr.inc, line 111

Code

function image_ncck_flickr_request($method, $args = array(), $cached = TRUE) {

  // display an error if we don't have an api key yet
  image_ncck_flickr_error_check();
  $args['api_key'] = trim(variable_get('image_ncck_flickr_api_key', ''));
  if ($secret = trim(variable_get('image_ncck_flickr_api_secret', ''))) {
    $args['secret'] = md5($secret . $arghash);
  }
  $args['method'] = $method;
  $args['format'] = 'php_serial';
  $xml = module_invoke('emfield', 'request_xml', 'flickr', IMAGE_NCCK_FLICKR_REST_ENDPOINT, $args, $cached, FALSE, FALSE, TRUE);
  return $xml;
}