NAME

WebService::Hooktheory - Access to https://www.hooktheory.com

VERSION

version 0.01

SYNOPSIS

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;

DESCRIPTION

WebService::Hooktheory provides access to the https://www.hooktheory.com API.

ATTRIBUTES

username

password

activkey

base

METHODS

new()

$w = WebService::Hooktheory->new(%arguments);

Create a new WebService::Hooktheory object.

BUILD()

Authenticate and set the activkey attribute if given the right credentials.

Skip this step if given an activkey in the constructor.

fetch()

$r = $w->fetch(%arguments);

Fetch the results given the endpoint and optional query arguments.

THANK YOU

Dan Book

SEE ALSO

Moo

https://www.hooktheory.com/

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

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.