Skip to content

Easily make API calls to Flickr's REST services. Returns results as objects.

Notifications You must be signed in to change notification settings

coreyworrell/PHP-Flickr-API-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PHP Flickr API Wrapper

Easily make API calls to Flickr's REST services. Returns results as objects.

Example Usage

Flickr::$api_key      = 'my_flickr_api_key';
Flickr::$cache_dir    = 'cache/flickr/';     // Defaults to 'cache'
Flickr::$cache_expire = 600;                 // Defaults to 86400 seconds (1 day)

$params = array
(
	'user_id'  => 'my_flickr_user_id',
	'extras'   => 'url_sq,url_m',
	'per_page' => 10,
);

$result = Flickr::call('people.getPublicPhotos', $params);

foreach ($result->photos->photo as $photo)
{
	$photo_info = Flickr::call('photos.getInfo', array('photo_id' => $photo->id));
}

About

Easily make API calls to Flickr's REST services. Returns results as objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages