Web API Client for GitHub/GHE
Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/WebService
t
.gitignore
.travis.yml
Build.PL
Changes
LICENSE
META.json
README.md
cpanfile
minil.toml

README.md

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