https://github.com/rsrchboy/github-api
My teeny little old-school, wicked-easy, chaining interface to the GitHub API
https://github.com/rsrchboy/github-api
Last synced: 3 months ago
JSON representation
My teeny little old-school, wicked-easy, chaining interface to the GitHub API
- Host: GitHub
- URL: https://github.com/rsrchboy/github-api
- Owner: rsrchboy
- License: other
- Created: 2013-03-27T16:30:04.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-05-11T05:16:54.000Z (about 10 years ago)
- Last Synced: 2025-01-16T04:21:24.259Z (5 months ago)
- Language: Perl
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/RsrchBoy/github-api)
[](http://cpants.charsbar.org/dist/overview/GitHub-API)
[](https://coveralls.io/r/RsrchBoy/github-api?branch=master)# NAME
GitHub::API - An itty-bitty interface to the GitHub API
# VERSION
This document describes version 0.000000\_04 of GitHub::API - released May 10, 2015 as part of GitHub-API.
# SYNOPSIS
# tiny little chaining interface
use GitHub::API;
use autobox::JSON;say GitHub::API
->new
->user
->repo("moosex-attributeshortcuts")
->hooks
->all
->to_json
;# DESCRIPTION
**WARNING: THIS IS INCOMPLETE AND WILL EAT YOUR REPOSITORIES!**
This is a very small interface to the GitHub v3 API, designed to do simple
things quickly, and with a minimum of fuss.# METHODS
## new(user => $userid, token => $gh\_token)
Returns a new instance; requires a valid GitHub user name and OAuth2 token.
We do not support unauthenticated access.## user
Returns a [GitHub::API::User](https://metacpan.org/pod/GitHub::API::User) object representing the authenticated user.
## org($org\_name)
Returns a [GitHub::API::Org](https://metacpan.org/pod/GitHub::API::Org) object representing the named organization.
# SEE ALSO
Please see those modules/websites for more information related to this module.
- [Net::GitHub](https://metacpan.org/pod/Net::GitHub)
- [Pithub](https://metacpan.org/pod/Pithub)# BUGS
Please report any bugs or feature requests on the bugtracker website
https://github.com/RsrchBoy/github-api/issuesWhen submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.# AUTHOR
Chris Weyl
## I'm a material boy in a material world
Please note **I do not expect to be gittip'ed or flattr'ed for this work**,
rather **it is simply a very pleasant surprise**. I largely create and release
works like this because I need them or I find it enjoyable; however, don't let
that stop you if you feel like it ;)[Flattr](https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fgithub-api&title=RsrchBoy's%20CPAN%20GitHub-API&tags=%22RsrchBoy's%20GitHub-API%20in%20the%20CPAN%22),
[Gratipay](https://gratipay.com/RsrchBoy/), or indulge my
[Amazon Wishlist](http://bit.ly/rsrchboys-wishlist)... If and \*only\* if you so desire.# COPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by Chris Weyl.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999