NAME

Ambassador::API::V2 - Speak with the getambassador.com API v2

SYNOPSIS

use Ambassador::API::V2;

my $api = Ambassador::API::V2->new(
    username => $app_username,
    key      => $app_key
);

my $result = $api->post(
    '/event/record/' => {
        email        => 'fake@fakeity.fake',
        campaign_uid => 1234
    }
);

my $result = $api->get(
    '/shortcode/get/' => {
        short_code => $mbsy,
    }
);

DESCRIPTION

Speak with the getambassador.com API version 2. See https://docs.getambassador.com.

CONSTRUCTOR

my $api = Ambassador::API::V2->new(
    username => $app_username,
    key      => $app_key
);

METHODS

SOURCE

The source code repository for Ambassador-API-V2 can be found at https://github.com/dreamhost/Ambassador-API-V2.

COPYRIGHT

Copyright 2016 Dreamhost dev-notify@hq.newdream.net.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/