Difference between revisions of "Tag Search for Addicted to Flickr"
From rukapedia
Line 1: | Line 1: | ||
I wrote a [http://ruk.ca/code/class.flickr.php.patch small patch] for [http://addictedtonew.com/examples/flickr/ Addicted to Flickr] that adds support for the [http://www.flickr.com/services/api/flickr.photos.search.html flickr.photos.search] method. | I wrote a [http://ruk.ca/code/class.flickr.php.patch small patch] for [http://addictedtonew.com/examples/flickr/ Addicted to Flickr] that adds support for the [http://www.flickr.com/services/api/flickr.photos.search.html flickr.photos.search] method. | ||
+ | |||
+ | Examples of use: | ||
+ | |||
+ | <pre>$result = $flickr->getTagSearchPhotos('','aircanada','all',1,15);</pre> | ||
+ | |||
+ | This will return the most recent 15 photos tagged 'aircanada'. | ||
+ | |||
+ | <pre>$result = $flickr->getTagSearchPhotos('','aircanada,airplane','all',1,15);</pre> | ||
+ | |||
+ | This will return the most recent 15 photos tagged 'aircanada' '''and''' 'airplane'. | ||
+ | |||
+ | <pre>$result = $flickr->getTagSearchPhotos('','charlottetown,london','all',1,15);</pre> | ||
+ | |||
+ | This will return the most recent 15 photos tagged 'charlottetown' '''or''' 'london'. |
Revision as of 14:39, 23 September 2005
I wrote a small patch for Addicted to Flickr that adds support for the flickr.photos.search method.
Examples of use:
$result = $flickr->getTagSearchPhotos('','aircanada','all',1,15);
This will return the most recent 15 photos tagged 'aircanada'.
$result = $flickr->getTagSearchPhotos('','aircanada,airplane','all',1,15);
This will return the most recent 15 photos tagged 'aircanada' and 'airplane'.
$result = $flickr->getTagSearchPhotos('','charlottetown,london','all',1,15);
This will return the most recent 15 photos tagged 'charlottetown' or 'london'.