Flickr...equest(3pm)

πŸ“¦
version 1.29 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Flickr::API::Request β€” bestie, it's literally just a request to the Flickr API. That's it. That's the whole vibe. πŸŽ€

This is a Perl module, so it lives its life in the 3pm manual section, and it's part of the User Contributed Perl Documentation crew. πŸ‘‘


✨ SYNOPSIS ✨

Okay so there are two whole ways to do this, and you gotta pick your fighter. πŸ₯Š

πŸ¦‹ Using the OAuth form

use Flickr::API;
use Flickr::API::Request;

my $api = Flickr::API->new({'consumer_key' => 'your_api_key'});

my $request = Flickr::API::Request->new({
    'method' => $method,
    'args' => {},
});

my $response = $api->execute_request($request);

Note the 'consumer_key' up in there β€” that's the OAuth glow-up. ✨

🧚 Using the original Flickr form

use Flickr::API;
use Flickr::API::Request;

my $api = Flickr::API->new({'key' => 'your_api_key'});

my $request = Flickr::API::Request->new({
    'method' => $method,
    'args' => {},
});

my $response = $api->execute_request($request);

And here it's just 'key' β€” the classic, the OG, the original recipe. πŸ“


🌸 DESCRIPTION 🌸

So like, this object? It encapsulates a request to the Flickr API. Think of it as the little envelope you stuff all your request details into before it goes on its journey. πŸ’Œ

Here's the tea though: Flickr::API::Request is a subclass of HTTP::Request, which means you have full main-character access to any of the request parameters and you can tweak them yourself. Do with that what you will. πŸ’…

But listen β€” the content, the content-type header, and the content-length header? Those are all built from the 'args' list</> by the Flickr::API::execute_request() method. So don't be out here hand-crafting those, bestie, the method's got it handled. 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Copyright (C) 2004, Cal Henderson, <cal@iamcal.com> πŸ’œ

OAuth patches and additions Copyright (C) 2014-2016, Louis B. Moore <lbmoore@cpan.org> ✨


πŸ”₯ SEE ALSO πŸ”₯

  • Flickr::API
  • Net::OAuth

And that's the whole page, bestie β€” no notes, it ate, periodt. πŸ’…

This masterpiece of documentation was brought to you by perl v5.40.1, dated 2025-05-04, and the original title was giving Flickr...equest(3pm) (yes, truncated like that, iconic honestly 😭). Go forth and make requests. πŸŒˆπŸ’–

πŸ“¦ where this page comes from