2 unstable releases
Uses old Rust 2015
0.3.0 | Dec 26, 2016 |
---|---|
0.2.0 | Dec 26, 2016 |
#10 in #v3
1MB
1K
SLoC
Contains (ELF exe/lib, 3MB) TrelloBST
Rustyhub
A client for the Github v3 API (In development)
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
rustyhub
Rustyhub is a client for the Github v3 web API, the intent is to create a client that is as complete as possible. Once complete, it will offers an interface to the public and enterprise API. It will also, once complete, offer the capability for using all supported authentication methods, media-types, etc.
Usage
The crate is used by creating a Client and then calling the function associated to the desired endpoint with appropriate arguments. Note: Each function borrows a mutable Client
Example
extern crate rustyhub;
use rustyhub::activity::events;
use rustyhub::auth::auth::Auth;
use rustyhub::client::Client;
fn main() {
let github_token = "0000000000000000000000000000000000000000".to_string();
let mut client = Client::new("rusyhub-UserAgent", Auth::OAuth2Token(github_token)));
let events = events::get_events(&mut client).unwrap();
}
Dependencies
~7MB
~158K SLoC