#github #github-api #rest #v3 #api

nightly rustyhub

A client for the Github v3 API

2 unstable releases

Uses old Rust 2015

0.3.0 Dec 26, 2016
0.2.0 Dec 26, 2016

#9 in #v3

29 downloads per month

MIT/Apache

1MB
1K SLoC

Contains (ELF exe/lib, 3MB) TrelloBST

Rustyhub

Build Status Build Status

A client for the Github v3 API (In development)

License

Licensed under either of

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

~7.5MB
~177K SLoC