1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright 2016 Alex Frappier Lachapelle
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
//! # 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](client/index.html) and then calling the
//! function associated to the desired endpoint with
//! appropriate arguments. Note: Each function borrows a
//! mutable [Client](client/index.html)
//!
//! ### Example
//!
//! ```rust,no_run
//!
//! 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();
//!
//! }
//!
//! ```
//#![warn(missing_docs)]
extern crate hyper;
extern crate log;
extern crate serde;
extern crate serde_derive;
extern crate serde_json;
//TODO: Payloads
//TODO: Licenses once out of preview
//TODO: enterprise
//TODO: gists
//TODO: git_data
//TODO: integrations
//TODO: migration
//TODO: organizations
//TODO: projects
//TODO: pull_requests
//TODO: reactions
//TODO: repositories
//TODO: search
//TODO: users
//TODO: webhooks, include HMAC validation?