API_LINKEDIN

API_LINKEDIN

Categories API method Description
People and Connections Get My Profile The Profile API returns a member's LinkedIn profile. Use the tilde character to indicate that you want the profile of the current user. The access token will be used to determine the profile to return.
-- Get Member Profile The Profile API returns a member's LinkedIn profile. If you know the member token of the profile you want to display, you can use it as the key value for this API call. You should include id= to indicate that you are using a member token. Requesting by member token only returns a profile from the logged in person's three degree network and doesn't return any out-of-network profiles. You cannot use a member token to get a public profile. To see just a thumbnail version of the profile, do not include anything after the profile key value. To select your own fields, use the field selector notation: :( field1, field2, field3...) (i.e. http://api.linkedin.com/v1/people/id=12345:(first-name,last-name)).
-- Get Out Of Network Profile When you perform searches and a few other API actions on LinkedIn, you'll often be presented with people resources that are outside of the current member's three degrees. We call these out of network profiles.To request profile information for a member that has a degree distance greater than three for the currently logged in member, pass us an additional authorization token to tell LinkedIn more about the context for this profile call.For example, when you make a Search API request, you can ask for a node structure under person called api-standard-profile-request. Beneath this node is a collection called headers. This is where you find the relevant data to provide. http://api.linkedin.com/v1/people/Sa_cgv2lRl x-li-auth-token NAME_SEARCH:HepG Look at the XML highlighted above. The node http-header/name indicates the name of the HTTP header you need to send us, and http-header/value indicates the value of that named HTTP header.From the above example, create the following HTTP header and attach it to your GET request for this profile:x-li-auth-token: NAME_SEARCH:HepGThis is a separate header from the OAuth Authorization HTTP header.ExampleHere is a full example of a search request, followed by a profile API request with the extra headers.GET http://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,api-standard-profile-request))?first-name=adam&last-name=trachtenbergWe reply with: cNlAf1wFQ4 Adam Trachtenberg http://api.linkedin.com/v1/people/cNlAf1wFQ4 x-li-auth-token NAME_SEARCH:UrnW You extract the id and name/value fields from the http-header element:GET http://api.linkedin.com/v1/people/cNlAf1wFQ4Adding the following HTTP Header :x-li-auth-token: NAME_SEARCH : UrnWNow you can see the profile, even if you were more than three degrees away.
-- Get My Connections The Connections API returns a list of connections for a user who has granted access to his/her account. You can control the fields you want to have returned and the number of connections returned for each call, i.e. http://api.linkedin.com/v1/people/~/connections, and using field selector, http://api.linkedin.com/v1/people/~/connections:(headline,first-name,last-name).
-- Get Member Connections By ID The Connections API returns a list of connections for a user who has granted access to his/her account. You can control the fields you want to have returned and the number of connections returned for each call, i.e. http://api.linkedin.com/v1/people/id=12345/connections.
-- Search People The People Search API returns information about people. It lets you implement most of what shows up when you do a search for people in the top right box on linkedin.com.
Companies Get Company By ID Retrieves a company by using the company ID. This returns a single company if found. You can retrieve data for individual or multiple companies. The API returns a list of companies with matching profiles. Each entry can contain the basic company information available in the company profile (such as company ID, logo, site URL, and more) and handles to additional company content (such as RSS stream or Twitter feed).
-- Get Company By Universal Name Retrieves a company by universal-name. You can retrieve data for individual or multiple companies. The API returns a list of companies with matching profiles. Each entry can contain the basic company information available in the company profile (such as company ID, logo, site URL, and more) and handles to additional company content (such as RSS stream or Twitter feed).
-- Get Company By Email Domain Returns an array of companies that match to the specified email domain. You can retrieve data for individual or multiple companies. The API returns a list of companies with matching profiles. Each entry can contain the basic company information available in the company profile (such as company ID, logo, site URL, and more) and handles to additional company content (such as RSS stream or Twitter feed).
-- Get Companies By ID And Universal Name You can make a bulk request and mix ID and univeral-name. This returns a list of companies that match the keys provided.
-- Get Company Updates (Beta) Note: This API is in Preview Mode. You're welcome to use it, but it may change at some point in the future. You can use the Company Updates API to read shares for a particular company. Returns a feed of event items. Each item contains a core set of information, such as when it occured, what type of event took place, and whether you can comment and like the item. However, the format of the event's information can vary widely from type to type. Each event type needs to be parsed differently. We may perodically add new event types to this feed, or deprecate old ones.
-- Search Companies Use the Company Search API to find companies using keywords, industry, location, or some other criteria. It returns a collection of matching companies. Each entry can contain much of the information available on the company page. The API can also return facets. Facets provide you with data about the collection of companies, such as which companies are located in a certain area, size of the companies, and the industry a company is in. You can then use this data to make a new API call that further refines your original request. This is similar to clicking the buttons on the left-hand side of the LinkedIn Search results page.
-- Get Followed Companies Retrieves a list of companies a member is following.
-- Start Following Company Starts following a company.
-- Stop Following Company Stops following a company.
-- Get Suggested Companies To Follow Retrieves a collection of suggested companies for the current user.
-- Get Company Products Returns a list of products and services supported by a company together with recommendations for particular products. The product data type contains details about a company's product or service, including recommendations from LinkedIn members, and replies from company representatives.
Social Stream Add Share Use the Share API to have a member share content with their network or with all of LinkedIn. This can be a simple short text update, similar to Twitter, or an URL with a title and optional photo, or both. To have LinkedIn pass the status message along to a member's tethered Twitter account, if they have one, modify the URL to include a query string of twitter-post=true.
-- Reshare When a member does a reshare, they can pass along a previously shared item to their network. This can either be as-is, or they can annotate the share to provide their own thoughts. The process is similar to creating a new share, but you provide an attribution/id value instead of a content block. You can only reshare a share with a content block. If this block is empty, you will get a 400 error saying.
-- Get Current Share Gets a member's current share
-- Get My Shares Stream Retrieves a stream of shares for the current member or its first degree network.
-- Get Member Shares Stream By ID Retrieves a stream of shares for the member (identified by ID) or its first degree network.
-- Get Member Shares Stream By URL Retrieves a stream of shares for the member (identified by public profile URL) or its first degree network.
-- Get Comments Retrieves all comments for a given network update.
-- Post Comment When you want to post a new comment to an existing update: Ensure update/is-commentable is set to true, and take the update/update-key from an existing update. Comments have a maximum length of 700 characters.
-- Get Likes Retrieves the complete list of people who liked an update.
-- Like Comment To Like or Unlike an existing update: Ensure update/is-likeable is set to true, and use the same update/update-key.
-- Dislike Comment To Like or Unlike an existing update: Ensure update/is-likeable is set to true, and use the same update/update-key.
Groups Get Group You can access details about one or more groups such as the ID, name, settings, and posts from any groups resource path.
-- Get Groups Get the groups the member belongs to.
-- Join Group Joins to a group. Note: You can only join groups that are listed in the public directory via the Groups API. In the settings for your group, ensure that 'Display this group in the Groups Directory' is checked.
-- Get Group Settings Shows my group's settings.
-- Update Group Settings Updates my group's settings.
-- Join Group Joins to a group. Note: You can only join groups that are listed in the public directory via the Groups API. In the settings for your group, ensure that 'Display this group in the Groups Directory' is checked.
-- Leave Group Leaves a group.
-- Get Group Posts Get group's posts.
-- Create Group Post Creates a post in a group.
-- Get Group Member Posts Get group's member posts. The could be the ones the member started, has participated or is following.
-- Get Post Get Post .
-- Delete Post Or Flag As Inappropriate Deletes post or flags as inappropriate. If the actor is the creator or moderator, this deletes the post. If the actor is a member, this flags the post as inappropriate.
-- Get Post Comments Get post's comments.
-- Add Post Comment Adds comment to a post.
-- Like Post Likes post.
-- Dislike Post Dislikes post.
-- Follow Post Follows post.
-- Unfollow Post Unfollows post.
-- Flag Post As Promotion Flags post as a promotion.
-- Flag Post As Job Flags post as a job.
-- Get Comment Flags post as a promotion.