|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.github.api.impl.GitHubTemplate
public class GitHubTemplate
The central class for interacting with TripIt.
TripIt operations require OAuth 1 authentication. Therefore TripIt template
must be given the minimal amount of information required to sign requests to
the TripIt API with an OAuth Authorization
header.
Constructor Summary | |
---|---|
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 | |
---|---|
java.lang.String |
getProfileId()
Retrieves the user's GitHub profile ID. |
java.lang.String |
getProfileUrl()
Retrieve the URL to the user's GitHub profile. |
protected RestTemplate |
getRestTemplate()
|
GitHubUserProfile |
getUserProfile()
Retrieves the user's GitHub profile details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GitHubTemplate(java.lang.String accessToken)
Authorization
header.
accessToken
- An access token granted to the application after OAuth
authentication.Method Detail |
---|
public java.lang.String getProfileId()
GitHubApi
getProfileId
in interface GitHubApi
public GitHubUserProfile getUserProfile()
GitHubApi
getUserProfile
in interface GitHubApi
public java.lang.String getProfileUrl()
GitHubApi
getProfileUrl
in interface GitHubApi
protected RestTemplate getRestTemplate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |