NAME

WebService::Freshservice::API - Request abstraction to the Freshservice API

VERSION

version 0.004

SYNOPSIS

use WebService::Freshservice::API;

my $request = WebService::Freshservice::API->new( apikey => 'xxxxxxxxxxxxxxxxxxxxxx' );

DESCRIPTION

Provides a light wrapper to LWP::UserAgent against the Freshservice APIs

METHODS

get_api

$api->get_api( "itil/requesters/123456.json" );

Returns a perl object of the JSON decoded data structure API. Croaks on failure.

post_api

$api->post_api( "itil/requesters.json", $data );

Returns a perl object of the JSON decoded data structure API. Croaks on failure.

put_api

$api->put_api( "itil/requesters.json", $data );

Returns 1 on success. Croaks on failure.

delete_api

$api->delete_api( "itil/requesters/123456.json" );

Returns 1 on success. Croaks on failure.

AUTHOR

Leon Wright <techman@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Leon Wright.

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