|
spring-social-github | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.oauth2.AbstractOAuth2ApiBinding
org.springframework.social.github.api.impl.GitHubTemplate
public class GitHubTemplate
The central class for interacting with GitHub.
| Constructor Summary | |
|---|---|
GitHubTemplate()
No-arg constructor to support cases in which you want to call the GitHub API without requiring authorization. |
|
GitHubTemplate(java.lang.String accessToken)
Constructs a GitHubTemplate with the minimal amount of information required to sign requests with an OAuth Authorization
header. |
|
| Method Summary | |
|---|---|
protected org.springframework.social.oauth2.OAuth2Version |
getOAuth2Version()
|
GistOperations |
gistOperations()
Returns the portion of the GitHub API containing the gist operations. |
RepoOperations |
repoOperations()
Returns the portion of the GitHub API containing the repo operations. |
org.springframework.web.client.RestOperations |
restOperations()
Returns the underlying RestOperations object allowing for consumption of GitHub endpoints that may not be otherwise covered by the API binding. |
UserOperations |
userOperations()
Returns the portion of the GitHub API containing the user operations. |
| Methods inherited from class org.springframework.social.oauth2.AbstractOAuth2ApiBinding |
|---|
configureRestTemplate, getByteArrayMessageConverter, getFormMessageConverter, getJsonMessageConverter, getMessageConverters, getRestTemplate, isAuthorized, setRequestFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.social.ApiBinding |
|---|
isAuthorized |
| Constructor Detail |
|---|
public GitHubTemplate()
public GitHubTemplate(java.lang.String accessToken)
Authorization
header.
accessToken - An access token granted to the application after OAuth
authentication.| Method Detail |
|---|
protected org.springframework.social.oauth2.OAuth2Version getOAuth2Version()
getOAuth2Version in class org.springframework.social.oauth2.AbstractOAuth2ApiBindingpublic GistOperations gistOperations()
GitHub
gistOperations in interface GitHubpublic RepoOperations repoOperations()
GitHub
repoOperations in interface GitHubpublic UserOperations userOperations()
GitHub
userOperations in interface GitHubpublic org.springframework.web.client.RestOperations restOperations()
GitHubRestOperations object 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.
restOperations in interface GitHub
|
spring-social-github | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||