The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::Hooktheory - Access to the Hooktheory API

VERSION

version 0.0202

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

Your authorized access key.

base

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

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 (DBOOK)

SEE ALSO

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

Moo

Mojo::UserAgent

Mojo::JSON::MaybeXS

Mojo::JSON

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.