NAME

WebService::Hooktheory - Access to the Hooktheory API

VERSION

version 0.0601

SYNOPSIS

use WebService::Hooktheory;

my $w = WebService::Hooktheory->new( username => 'foo', password => 'bar' );
print $w->activkey, "\n";

# 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

Your authorized access key.

base

The base URL. Default: https://api.hooktheory.com

ua

The user agent.

METHODS

new()

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

Create a new WebService::Hooktheory object.

fetch()

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

Fetch the results given the endpoint and optional query arguments.

THANK YOU

Dan Book (DBOOK)

SEE ALSO

The examples in the eg/ directory.

The tests in t/01-methods.t

https://www.hooktheory.com/api/trends/docs

Moo

Mojo::JSON

Mojo::UserAgent

Mojo::URL

Try::Tiny

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 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.