Interface GitHub
-
- All Superinterfaces:
ApiBinding
- All Known Implementing Classes:
GitHubTemplate
public interface GitHub extends ApiBinding
Interface specifying a basic set of operations for interacting with GitHub. Implemented byGitHubTemplate. Many of the methods contained in this interface require OAuth authentication with GitHub. When a method's description speaks of the "current user", it is referring to the user for whom the access token has been issued.- Author:
- Craig Walls, Willie Wheeler (willie.wheeler@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GistOperationsgistOperations()Returns the portion of the GitHub API containing the gist operations.RepoOperationsrepoOperations()Returns the portion of the GitHub API containing the repo operations.org.springframework.web.client.RestOperationsrestOperations()Returns the underlyingRestOperationsobject allowing for consumption of GitHub endpoints that may not be otherwise covered by the API binding.UserOperationsuserOperations()Returns the portion of the GitHub API containing the user operations.-
Methods inherited from interface org.springframework.social.ApiBinding
isAuthorized
-
-
-
-
Method Detail
-
gistOperations
GistOperations gistOperations()
Returns the portion of the GitHub API containing the gist operations.- Returns:
- gist operations
-
repoOperations
RepoOperations repoOperations()
Returns the portion of the GitHub API containing the repo operations.- Returns:
- repo operations
-
userOperations
UserOperations userOperations()
Returns the portion of the GitHub API containing the user operations.- Returns:
- user operations
-
restOperations
org.springframework.web.client.RestOperations restOperations()
Returns the underlyingRestOperationsobject allowing for consumption of GitHub endpoints that may not be otherwise covered by the API binding. The RestOperations object returned is configured to include an OAuth "Authorization" header on all requests.- Returns:
- RestOperations
-
-