API-Drip-Request
view release on metacpan or search on metacpan
lib/API/Drip/Request.pm view on Meta::CPAN
565758596061626364656667686970717273747576=head2 new()
Creates the API::Drip::Request object. See L</"CONFIGURATION"> for accepted parameters.
Also accepts:
=over
=item debugger
A codref that should accept a list of diagnostic strings and log them somewhere
useful for debugging purposes. Only used when DRIP_DEBUG is true.
=back
=cut
my
$config_validator
= validation_for(
params
=> {
DRIP_CLIENT_CONF
=> {
type
=> Str(),
optional
=> 1 },
map
{
$_
=> {
type
=> Str(),
optional
=> 1 } }
keys
%DEFAULTS
,
lib/API/Drip/Request.pm view on Meta::CPAN
191192193194195196197198199200201202203204205206207208209210211212213214215=back
=back
The following configuration data is accepted:
=over
=item * DRIP_TOKEN (required)
This is the user token assigned to you by drip. When you are logged in, look for "API Token" at https://www.getdrip.com/user/edit
=item * DRIP_ID (required)
This is the numeric user id assigned to you by drip. When logged in, find it in your settings under Account->General Info.
=item * DRIP_URI (optional)
This defaults to https://api.getdrip.com/v2. You probably shouldn't change this.
=item * DRIP_AGENT (optional)
Defaults to "API::Drip". Specifies the HTTP Agent header.
=item * DRIP_DEBUG (optional)
( run in 0.432 second using v1.01-cache-2.11-cpan-87723dcf8b7 )