github
Nit wrapper for Github API
This module provides a Nit object oriented interface to access the Github api.
Accessing the API
[[doc: GithubAPI]]
Authentification
[[doc: GithubAPI::auth]]
Token can also be recovered from user config with get_github_oauth
.
[[doc: get_github_oauth]]
Retrieving user data
[[doc: load_user]] [[doc: User]] [[list: User]]
Retrieving repo data
[[doc: load_repo]] [[doc: Repo]] [[list: Repo]]
Other data
[[list: api]]
Advanced uses
Caching
[[doc: cache]]
Custom requests
[[doc: GithubAPI::get]]
Change the user agent
[[doc: GithubAPI::user_agent]]
Debugging
[[doc: verbose_lvl]]
Using with GitLab
If URL scheme of GitLab API follows the one of Github API, it may be possible to configure this wrapper to use a custom URL.
[[doc: api_url]]
Creating hooks
Using this API you can create Github hooks able to respond to actions performed on a repository.
[[doc: hooks]]
Dealing with events
GithubAPI can trigger different events depending on the hook configuration.
[[doc: GithubEvent]]
[[list: github::events]]
Content
- github: Nit wrapper for Github API (lib/github)
- api: Nit object oriented interface to Github api. (lib/github/api.nit)
- cache: Enable caching on Github API accesses. (lib/github/cache.nit)
- events: Events are emitted by Github Hooks. (lib/github/events.nit)
- github: Nit wrapper for Github API (lib/github/github.nit)
- github_curl: Curl extention to access the Github API (lib/github/github_curl.nit)
- hooks: Github hook event listening with
nitcorn
. (lib/github/hooks.nit) - test_github_curl (lib/github/test_github_curl.nit)