The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Flickr::Tools - Tools to assist using the Flickr API

VERSION

CPAN: 1.22 Development: 1.22_01

SYNOPSIS

This is the base class for the various Flickr::Tools, you will probably want one of the subclasses, such as Flickr::Tools::Person.

  my $tool = Flickr::Tool->new({config_file => 'my/storable/config/file.st'});

  my $tool = Flickr::Tool->new({
                                consumer_key    => '1234567890abcdefedcba0987654321',
                                consumer_secret => '123beefcafe321',
                                token           => '12345678909876-acdbeef55321',
                                token_secret    => '1234cafe4123b',
                               });

DESCRIPTION

METHODS

new

Returns a new Tool

api

Returns the Flickr::API object this tool is using.

clear_api

removes the Flickr::API object this tool was using.

user

Returns the Flickr user hashref for the Flickr::API object this tool is using.

PUBLIC ATTRIBUTES

access_token a read only attribute.

Returns your oauth access token if it is there. You will more commonly use token below.

auth_uri a read only attribute.

Returns the Flickr oauth api uri. The default is most likely what youy want.

callback a read only attribute.

Returns your callback url if there is one.

config_file a read only attribute.

Returns the path of your storable format configuration file, if there is one.

consumer_key a read only attribute.

Returns your consumer key, this is required to create a tool object.

consumer_secret a read only attribute.

Returns your consumer secret, this is required to create a tool object.

local a read/write attribute.

local is a hashref that the tool keeps, but doesn't use. It is there to store you own items in a tool.

 $tool->local($hashref);

or

 my $local = $tool->local;
request_method a read only attribute.
request_token a read only attribute.
request_url a read only attribute.
rest_uri a read only attribute.
signature_method a read only attribute.
token a read only attribute.
token_secret a read only attribute.
unicode a read only attribute.
version a read only attribute.

PRIVATE ATTRIBUTES

_api
_api_name
_user

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

Perl 5.10 and Moo.

INCOMPATIBILITIES

None known of, yet.

BUGS AND LIMITATIONS

Yes

AUTHOR

Louis B. Moore <lbmoore@cpan.org>

LICENSE AND COPYRIGHT

Copyright (C) 2014-2015 Louis B. Moore <lbmoore@cpan.org>

This program is released under the Artistic License 2.0 by The Perl Foundation. http://www.perlfoundation.org/artistic_license_2_0

SEE ALSO

Flickr, http://www.flickr.com/services/api/ https://www.flickr.com/services/api/auth.oauth.html https://github.com/iamcal/perl-Flickr-API