This repository has been archived by the owner. It is now read-only.
This library allows you to query Flickr's API.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
config.ini
example.php
flickr.php

README.markdown

PHP Flickr

This library allows you to query Flickr's API.

Usage

  1. Get a Flickr API Key

  2. Edit config.ini:

    api_key = "YOUR_API_KEY"
    
  3. Then, in your PHP code:

    define('APP_ROOT', dirname(__FILE__));
    define('CACHE_DIR', APP_ROOT . '/tmp');
    require_once APP_ROOT . '/flickr.php';
    
    $config = parse_ini_file(APP_ROOT . '/config.ini', true);
    
    $flickr = new Flickr($config);
    $flickr->api_key = $config['api_key'];
    
    $flickr->photos->getInfo(array('photo_id' => '4996628146'));
    $flickr->photosets->getList(array('user_id' => '44244432@N03'));
    

This library works with all methods except those which require authentication.