Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

6. API Basics > 41. Authenticate Users

Authenticate Users

phpFlickr takes most of the grunt work out of authentication.

Authenticating people is one of the more hassle-prone features of the API. This is why it’s a good idea to use an API wrapper: it handles the nitty-gritty details.

For PHP programmers, Dan Coulter’s phpFlickr does this job admirably well. I’ve found it to be the most well supported of the PHP wrappers currently available for Flickr. It even has its own web site, with documentation and example code, located at http://www.phpFlickr.com.

This hack creates a web application that displays a few of a user’s most recent photos. We’ll use authentication so that we can display the user’s Private photos as well as Public photos.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint