1Flickr::API(3) User Contributed Perl Documentation Flickr::API(3)
2
3
4
6 Flickr::API - Perl interface to the Flickr API
7
9 use Flickr::API;
10
11 my $api = new Flickr::API({'key' => 'your_api_key',
12 'secret' => 'your_app_secret'});
13
14 my $response = $api->execute_method('flickr.test.echo', {
15 'foo' => 'bar',
16 'baz' => 'quux',
17 });
18
19 or
20
21 use Flickr::API;
22 use Flickr::API::Request;
23
24 my $api = new Flickr::API({'key' => 'your_api_key'});
25
26 my $request = new Flickr::API::Request({
27 'method' => 'flickr.test.echo',
28 'args' => {},
29 });
30
31 my $response = $api->execute_request($request);
32
34 A simple interface for using the Flickr API.
35
36 "Flickr::API" is a subclass of LWP::UserAgent, so all of the various
37 proxy, request limits, caching, etc are available.
38
39 METHODS
40 "execute_method($method, $args)"
41 Constructs a "Flickr::API::Request" object and executes it,
42 returning a "Flickr::API::Response" object.
43
44 "execute_request($request)"
45 Executes a "Flickr::API::Request" object, returning a
46 "Flickr::API::Response" object. Calls are signed if a secret was
47 specified when creating the "Flickr::API" object.
48
49 "request_auth_url($perms,$frob)"
50 Returns a "URI" object representing the URL that an application
51 must redirect a user to for approving an authentication token.
52
53 For web-based applications $frob is an optional parameter.
54
55 Returns undef if a secret was not specified when creating the
56 "Flickr::API" object.
57
59 Copyright (C) 2004-2005, Cal Henderson, <cal@iamcal.com>
60
61 Auth API patches provided by Aaron Straup Cope
62
64 Flickr::API::Request, Flickr::API::Response, XML::Parser::Lite,
65 <http://www.flickr.com/>, <http://www.flickr.com/services/api/>
66
67
68
69perl v5.12.2 2009-08-25 Flickr::API(3)