WebService::Hooktheory - Access to the Hooktheory API
version 0.0202
use WebService::Hooktheory; my $w = WebService::Hooktheory->new( username => 'foo', password => 'bar' ); # Or: $w = WebService::Hooktheory->new( activkey => '1234567890abcdefghij' ); my $r = $w->fetch( endpoint => 'trends/nodes', query => { cp => '4,1' } ); print Dumper $r;
WebService::Hooktheory provides access to the https://www.hooktheory.com API.
WebService::Hooktheory
Your authorized access key.
The base URL. Default: https://api.hooktheory.com/v1/
$w = WebService::Hooktheory->new(%arguments);
Create a new WebService::Hooktheory object.
Authenticate and set the activkey attribute if given the right credentials.
Skip this step if given an activkey in the constructor.
$r = $w->fetch(%arguments);
Fetch the results given the endpoint and optional query arguments.
Dan Book (DBOOK)
https://www.hooktheory.com/api/trends/docs
Moo
Mojo::UserAgent
Mojo::JSON::MaybeXS
Mojo::JSON
Gene Boggs <gene@cpan.org>
This software is copyright (c) 2018 by Gene Boggs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::Hooktheory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Hooktheory
CPAN shell
perl -MCPAN -e shell install WebService::Hooktheory
For more information on module installation, please visit the detailed CPAN module installation guide.