|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.linkedin.api.impl.LinkedInTemplate
public class LinkedInTemplate
This is the central class for interacting with LinkedIn.
Greenhouse operations require OAuth authentication with the server. Therefore, LinkedInTemplate must be constructed with the minimal information required to sign requests with and OAuth 1 Authorization header.
Constructor Summary | |
---|---|
LinkedInTemplate(java.lang.String apiKey,
java.lang.String apiSecret,
java.lang.String accessToken,
java.lang.String accessTokenSecret)
Creates a new LinkedInTemplate given the minimal amount of information needed to sign requests with OAuth 1 credentials. |
Method Summary | |
---|---|
java.util.List<LinkedInProfile> |
getConnections()
Retrieves the 1st-degree connections from the current user's network. |
java.lang.String |
getProfileId()
Retrieves the user's LinkedIn profile ID. |
java.lang.String |
getProfileUrl()
Retrieves a URL to the user's public profile page. |
protected RestTemplate |
getRestTemplate()
|
LinkedInProfile |
getUserProfile()
Retrieves the current user's profile details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkedInTemplate(java.lang.String apiKey, java.lang.String apiSecret, java.lang.String accessToken, java.lang.String accessTokenSecret)
apiKey
- the application's API keyapiSecret
- the application's API secretaccessToken
- an access token acquired through OAuth authentication with LinkedInaccessTokenSecret
- an access token secret acquired through OAuth authentication with LinkedInMethod Detail |
---|
public java.lang.String getProfileId()
LinkedInApi
getProfileId
in interface LinkedInApi
public java.lang.String getProfileUrl()
LinkedInApi
getProfileUrl
in interface LinkedInApi
public LinkedInProfile getUserProfile()
LinkedInApi
getUserProfile
in interface LinkedInApi
public java.util.List<LinkedInProfile> getConnections()
LinkedInApi
getConnections
in interface LinkedInApi
protected RestTemplate getRestTemplate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |