-
-
23 Jul 2017 05:13:48 UTC
- Distribution: WebService-Freshservice
- Module version: 0.004
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (342 / 40 / 28)
- Kwalitee
Bus factor: 0- 34.64% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (20.97KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
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.
Module Install Instructions
To install WebService::Freshservice, copy and paste the appropriate command in to your terminal.
cpanm WebService::Freshservice
perl -MCPAN -e shell install WebService::Freshservice
For more information on module installation, please visit the detailed CPAN module installation guide.