|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.linkedin.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. |
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()
LinkedInOperations
getProfileId
in interface LinkedInOperations
public java.lang.String getProfileUrl()
LinkedInOperations
getProfileUrl
in interface LinkedInOperations
public LinkedInProfile getUserProfile()
LinkedInOperations
getUserProfile
in interface LinkedInOperations
public java.util.List<LinkedInProfile> getConnections()
LinkedInOperations
getConnections
in interface LinkedInOperations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |