topical media & game development

talk show tell print

mashup-flickr-06-Complete-gallery-6-1.php / php



  <?php 
  
  include (dirname(__FILE__) . '/../lib/phpFlickr/phpFlickr.php');
      
  nsid = '50317659@N00';
  flickr = new phpFlickr('YOUR-API-KEY', NULL, false);
   
  args = array(
    'user_id' => nsid,
    'sort' => 'date-posted-desc',
    'page' => 1, 
    'per_page' => 5
  );
  
  p = flickr->photos_search(args);
  
  if (flickr->getErrorCode())
  {
    echo ("Error fetching photos: " . flickr->getErrorMsg());
  }
  
  echo "<pre>\n";
  print_r(p);
  echo "</pre>\n";
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.