1Flickr::API::Request(3)User Contributed Perl DocumentatioFnlickr::API::Request(3)
2
3
4
6 Flickr::API::Request - A request to the Flickr API
7
9 Using the OAuth form:
10 use Flickr::API;
11 use Flickr::API::Request;
12
13 my $api = Flickr::API->new({'consumer_key' => 'your_api_key'});
14
15 my $request = Flickr::API::Request->new({
16 'method' => $method,
17 'args' => {},
18 });
19
20 my $response = $api->execute_request($request);
21
22 Using the original Flickr form:
23 use Flickr::API;
24 use Flickr::API::Request;
25
26 my $api = Flickr::API->new({'key' => 'your_api_key'});
27
28 my $request = Flickr::API::Request->new({
29 'method' => $method,
30 'args' => {},
31 });
32
33 my $response = $api->execute_request($request);
34
36 This object encapsulates a request to the Flickr API.
37
38 "Flickr::API::Request" is a subclass of HTTP::Request, so you can
39 access any of the request parameters and tweak them yourself. The
40 content, content-type header and content-length header are all built
41 from the 'args' list by the "Flickr::API::execute_request()" method.
42
44 Copyright (C) 2004, Cal Henderson, <cal@iamcal.com>
45
46 OAuth patches and additions Copyright (C) 2014-2016, Louis B. Moore
47 <lbmoore@cpan.org>
48
50 Flickr::API. Net::OAuth,
51
52
53
54perl v5.32.1 2021-01-27 Flickr::API::Request(3)