/p5-WebService-GitHub

Web API Client for GitHub/GHE

Primary LanguagePerlOtherNOASSERTION

NAME

WebService::GitHub - Web API Client for GitHub/GHE

SYNOPSIS

use WebService::GitHub;
my $gh = WebService->

DESCRIPTION

WebService::GitHub is Web API Client for GitHub/GHE. This module provides simple get/post/put/delete interface to call APIs and decode response JSON to Perl hashref.

METHODS

$instance = $class->new( token => 'your API token', base_uri => 'https://your_ghe_server.com/api/v3' )

create instance. base_uri is optional (default is https://github.com/api/v3)

$response_href = $self->get($end_point, $query_param_href)

call API using GET request

$response_href = $self->post($end_point, $data_href)

call API using POST request

$response_href = $self->put($end_point, $data_href)

call API using PUT request

$response_href = $self->delete($end_point)

call API using DELETE request

SEE ALSO

https://developer.github.com/v3/enterprise/

LICENSE

Copyright (C) Takuya Tsuchida.

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

AUTHOR

Takuya Tsuchida tsucchi@cpan.org