topical media & game development

talk show tell print

mashup-flickr-07-Complete-gallery-7-1.php / php



  <?php
  
  include (dirname(__FILE__) . '/../lib/apikey.php');
  include (dirname(__FILE__) . '/../lib/phpFlickr/phpFlickr.php');
  include (dirname(__FILE__) . '/../lib/FlickrAuthenticator.php');
  
  auth = new FlickrAuthenticator(flickrApiKey, flickrApiSecret);
  
  auth->authenticate("read");
  
  ?>
  <h1>Authenticated</h1>
  <p>You are logged in as 
  <strong><?php echo auth->auth['user']['username'] ?></strong> with 
  <strong><?php echo auth->auth['perms'] ?></strong> permissions.</p>
  


(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.