DragonFly On-Line Manual Pages

Search: Section:  


FLICKR_METHOD_TEST_ECHO(1)                 User Contributed Perl Documentation

NAME

flickr_method_test_echo.pl an example for using either OAuth or Old School Flickr

DESCRIPTION

This script uses either the Flickr or OAuth parameters to call the flickr.test.echo method.

USAGE

flickr_method_test_echo.pl --use_api=[oauth, flickr] \ --key="24680beef13579feed987654321ddcc6" \ --secret="de0cafe4feed0242" Depending on what you specify with --use_api the flickr.test.echo call will use the appropriate parameter set. If Flickr::API-new> is called with a consumer_key, OAuth is used. If Flickr::API-new> with key the old Flickr Authentication is used.

CALL DIFFERENCES

if ($config->{use_api} =~ m/flickr/i) { $api = Flickr::API->new({'key' => $config->{key}, 'secret' => $config->{secret}}); } elsif ($config->{use_api} =~ m/oauth/i) { $api = Flickr::API->new({'consumer_key' => $config->{key}, 'consumer_secret' => $config->{secret}}); } else { die "\n --use_api must be either 'flickr' or 'oauth' \n"; }

AUTHOR

Louis B. Moore <lbmoore at hethcote.com> Based on the code in Flickr::API.

COPYRIGHT AND LICENSE

Copyright 2014, Louis B. Moore This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. perl v5.20.2 2015-06-09 FLICKR_METHOD_TEST_ECHO(1)

Search: Section: