Difference between revisions of "Tag Search for Addicted to Flickr"

From rukapedia
Jump to: navigation, search
m
Line 9: Line 9:
 
The output from this should be something like:
 
The output from this should be something like:
  
<pre>patching file class.flickr.original.php</pre>
+
<pre>patching file class.flickr.php</pre>
  
 
This all assumes you're using a friendly OS X or Linux system; if you're running Windows, you're on your own.
 
This all assumes you're using a friendly OS X or Linux system; if you're running Windows, you're on your own.

Revision as of 14:47, 23 September 2005

I wrote a small patch for Addicted to Flickr that adds support for the flickr.photos.search method.

How to Apply

Download and save the patch, then copy it to the same directory where you've put class.flickr.php. Then:

patch class.flickr.php class.flickr.php.patch

The output from this should be something like:

patching file class.flickr.php

This all assumes you're using a friendly OS X or Linux system; if you're running Windows, you're on your own.

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