-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
37 lines (28 loc) · 873 Bytes
/
README
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
*** DEPRECATED ***
A Java wrapper for v2 of the GitHub API.
To setup GHAPI, import the GitHubAPI class and do the following:
1. Create a GitHubAPI object:
GitHubAPI gapi = new GitHubAPI();
2. That's it!
Authenticating in GHAPI:
When you first create the GitHubAPI object, all requests will be made
anonymously. To authenticate:
gapi.authenticate("myusername", "mypassword");
Anonymizing your request in GHAPI:
If you no longer wish to make authenticated requests, just do the
following:
gapi.goStealth();
Using GHAPI:
Accessing the API through GHAPI is done through objects instantiated
by the GitHubAPI class, each containing their own API calls. You can
access each by doing the following:
// Repository
gapi.repo.<...>
// User
gapi.user.<...>
// Issues
gapi.issues.<...>
// Commits
gapi.commits.<...>
// Object
gapi.object.<...>