File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ issueClient.listComments(ISSUE_ID).get().forEach(comment -> log.info(comment.bod
3838### Simple access token
3939
4040``` java
41- final GitHubClient github = GitHubClient . create(URI . create(" https://github.com/api/v3/" ));
41+ final GitHubClient github = GitHubClient . create(URI . create(" https://github.com/api/v3/" ), " my-access-token " );
4242// Do the requests
4343github. createRepositoryClient(" my-org" , " my-repo" ). getCommit(" sha" );
4444```
@@ -75,7 +75,7 @@ This library attempts to mirror the structure of GitHub API endpoints. As an exa
7575the ` GET /repos/:owner/:repo/commits ` API call, under the ` repos ` API. Therefore, the ` getCommit ` method lives in the RepositoryClient.
7676
7777``` java
78- final GitHubClient github = GitHubClient . create(URI . create(" https://github.com/api/v3/" ));
78+ final GitHubClient github = GitHubClient . create(URI . create(" https://github.com/api/v3/" ), " my-access-token " );
7979github. createRepositoryClient(" my-org" , " my-repo" ). getCommit(" sha" );
8080```
8181
You can’t perform that action at this time.
0 commit comments