Flickr::API2

Perl interface to the Flickr API
Download

Flickr::API2 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Publisher Name:
  • Toby Corkindale
  • Publisher web site:
  • http://search.cpan.org/~tjc/

Flickr::API2 Tags


Flickr::API2 Description

Perl interface to the Flickr API Flickr::API2 is a simple Perl interface for using the Flickr API.The API calls are made via Perl helper methods, and the data returned is converted into Perl objects that can have further methods called upon them.So for instance, you can fetch a user by username, by: my $user = $api->people->findByUsername('wintrmute')You can then ask for photos by that user, by calling: my @photos = $user->getPublicPhotos;And from there, you can query titles, URLs, etc of the photos with methods such as: $photos->titleSo far only a few helper methods have been written, but more are coming. Patches adding functionality will be greatly appreciated!SYNOPSIS use Flickr::API2; my $api = new Flickr::API2({'key' => 'your_api_key', 'secret' => 'your_app_secret'}); my @photos = $api->people->findByUsername('wintrmute') ->getPublicPhotos(per_page => 10); for my $photo (@photos) { say "Title is " . $photo->title; } To access the raw flickr API, use methods like: my $response = $api->execute_method('flickr.test.echo', { 'foo' => 'bar', 'baz' => 'quux', } ); Requirements: · Perl


Flickr::API2 Related Software