A GitHub API client for rust.
This crate is 100% unstable. Almost any useful features are missing at this time. As of now, this crate is mostly skeleton. Breaking changes can happen continuously. This crate does follow SemVer, though. But since this library is still at 0.x
, breaking changes happen in minor versions. If you find any bugs, report them. Please don't file endpoint-related feature requests, as there are plenty already on the list. Filing auth related or api usage related requests (add a new crate feature, expose a field, etc.) is perfectly fine.
```rust use usegithubapi::{GithubClient, schema::users::list};
let client = GithubClient::builder().auth(env!("GITHUBTOKEN")).build().unwrap();
let data: Vec
Authentication is recommended, and is turned on by default. To disable, use use-gitub-api = { version = "[version]", no-default-features = true }
in Cargo.toml
. There are a lot of things that you can't do without auth.
To get the auth token, you will need to go to GitHub settings and generate a token there. Then, set an environment variable there and use it to authenticate with the library.
auth
Explained above.enterprise
Enables usage of a GitHub enterprise instance for the API. Enables the auth
feature.node_ids
See https://docs.github.com/en/graphql/guides/using-global-node-ids. This exposes the node ids.auth
signalizes that auth is required, and auth?
signalizes that auth will do something, but is optional.
users
module
repo
module