Zend_Service_FlickrIntroductionZend_Service_Flickr is a simple API for using the Flickr REST Web Service. In order to use the Flickr web services, you must have an API key. To obtain a key and for more information about the Flickr REST Web Service, please visit the » Flickr API Documentation. In the following example, we use the tagSearch() method to search for photos having "php" in the tags. Example #1 Simple Flickr Photo Search
Finding Flickr Users' Photos and InformationZend_Service_Flickr provides several ways to get information about Flickr users:
Example #2 Finding a Flickr User's Public Photos by E-Mail Address In this example, we have a Flickr user's e-mail address, and we search for the user's public photos by using the userSearch() method:
Finding photos From a Group PoolZend_Service_Flickr allows to retrieve a group's pool photos based on the group ID. Use the groupPoolGetPhotos() method: Example #3 Retrieving a Group's Pool Photos by Group ID
Retrieving Flickr Image DetailsZend_Service_Flickr makes it quick and easy to get an image's details based on a given image ID. Just use the getImageDetails() method, as in the following example: Example #4 Retrieving Flickr Image Details Once you have a Flickr image ID, it is a simple matter to fetch information about the image:
Zend_Service_Flickr Result ClassesThe following classes are all returned by tagSearch() and userSearch(): Zend_Service_Flickr_ResultSetRepresents a set of Results from a Flickr search.
Properties
Zend_Service_Flickr_ResultSet::totalResults()
int
totalResults
( void
Returns the total number of results in this result set. Zend_Service_Flickr_ResultA single Image result from a Flickr query Properties
Zend_Service_Flickr_ImageRepresents an Image returned by a Flickr search. Properties
|
|