topical media & game development

talk show tell print

server-webapi-code-11-flickr-get-id.php / php



  <?php
  endPoint = "http://www.flickr.com/services/rest/?";
  
  paramaters = array();
  paramaters[] = array("method", "flickr.people.findByUsername");
  paramaters[] = array("api_key", "KEY");
  paramaters[] = array("username", "YOURUSERNAME");
  
  foreach (paramaters AS paramater)
  {
          endPoint .= paramater[0] . "=" . paramater[1] . "&";
  }
  
  response = file_get_contents(endPoint);
  xml = simplexml_load_string(response);
  echo response;
  nsid = xml->user['nsid'];
  ?>
  


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