flickr_make_stored_config1p
Script to assist with testing and using the flickr::api
Usage
flickr_make_stored_config --config_out=Config-File_to_build
[--config_in=file
--consumer_key ...]
Options
Required:
--config_outpoints to where to create the stored Flickr config file
Optional:
--config_inpoints to the optional input config file to use as a base for the --config_out file you are creating.
--api_typeeither flickr for the original, but deprecated, Flickr authentication OR oauth for the OAuth authentication. it defaults to oauth-
For Flickr Auth
--api_keyThe api key when used with Flickr authentication required for testing--keystill works to maintain compatibility with Flickr::API 1.10 and before, but it is saved as api_key.
--secretThe api secret when used with Flickr authentication required for testing--secretstill works to maintain compatibility with Flickr::API 1.10 and before, but it is saved as api_secret.
--frobThe frob used in Flickr authentication
--tokenThe auth token can be either a Flickr or OAuth Access token used with Flickr authentication-
For OAuth
--consumer_keyThe api key when used with OAuth authentication required for testing
--consumer_secretThe api secret when used with OAuth authentication required for testing
--callbackThe callback uri for use in OAuth authentication
--token_secretThe OAuth access token secret
--helpas expected
-
--usage
-
--man
Overview
This script is a lightweight method to assemble the required arguments for using the Flickr::API. It can be used to assemble the configuration(s) needed for the make test portion of installation. It does not use Flickr::API; and sticks to modules from perl core so that it can be used prior to-- and perhaps in conjunction with-- installation and testing of the Flickr::API module.
When you make test, add the environment variable MAKETEST_OAUTH_CFG, MAKETEST_FLICKR_CFG or both; each pointing to the configuration file you specified. The command should look something like:
make test MAKETEST_OAUTH_CFG=/home/myusername/test-flickr-oauth.cfg
or
make test MAKETEST_FLICKR_CFG=/home/myusername/test-flickrs-auth.cfg
or
make test MAKETEST_FLICKR_CFG=/home/myusername/test-flickrs-auth.cfg \MAKETEST_OAUTH_CFG=/home/myusername/test-flickr-oauth.cfg
License and copyright
Copyright (c) 2015-2016, Louis B. Moore "<[email protected]>".
This program is released under the Artistic License 2.0 by The Perl Foundation.
Releases
5 releases since Debian 9 (Stretch); the text changed 3 times.