WebService::Pingboard
Interaction with Pingboard
This module uses MooseX::Log::Log4perl for logging - be sure to initialize!
Optional.
Provided by MooseX::WithX - optionally pass a Cache::FileCache object to cache and avoid unnecessary requests
Timeout when communicating with Pingboard in seconds. Optional. Default: 10 Will only be in effect if you allow the useragent to be built in this module.
Optional. Default: 10 Time in seconds to back off before retrying request. If a 429 response is given and the Retry-Time header is provided by the api this will be overridden.
Optional. Default: 100
Optional. Default: [ 429, 500, 502, 503, 504 ] Which http response codes should we retry on?
Optional. Default: undef
Limit maximum number of times a query should be attempted before failing. If undefined then unlimited retries
Default: https://app.pingboard.com/api/v2/
Optional. A new LWP::UserAgent will be created for you if you don't already have one you'd like to reuse.
Optionally override the global loglevel for this module
Will return a valid access token.
Returns true if a valid access token exists (with at least 5 seconds validity remaining).
Returns a HTTP::Headers object with the Authorization header set with a valid access token
Optional. The user id to get
Optional. Maximum number of entries to fetch.
Optional. Page size to use when fetching.
The group id to get
The resource id to get
Clears an object from the cache.
Required. Object id to clear from the cache.
Returns whether cache_del was successful or not
Copyright 2015, Robin Clarke
Robin Clarke <robin@robinclarke.net>
Jeremy Falling <projects@falling.se>
To install WebService::Pingboard, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Pingboard
CPAN shell
perl -MCPAN -e shell install WebService::Pingboard
For more information on module installation, please visit the detailed CPAN module installation guide.