I need to access Linkedin api using C#, but not able to get documents/articles how I can make call to Linkedin API.
I need to get company information using Linkedin API if I pass the company name I need to get the feeds.
Can anyone please direct me how I can proceed further.
Regards
Anand
This call for get the code:
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=your-client-id&redirect_uri=your-redirect-uri&state=987654321&scope=r_basicprofile
This call for exchange code to token:
https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&code=your-code&redirect_uri=your-redirect-uri&client_id=your-client-id&client_secret=your-client-secret
And finally this call for get user info:
https://api.linkedin.com/v1/people/~:(firstName,lastName,picture-url)?oauth2_access_token=your-token&format=json
To take the client id and the client secret, you need sign up to linkedin developer, Here:
https://www.linkedin.com/secure/developer
Related
I am trying to understand how to get a LinkedIn page using LinkedIn API, if I know an email.
Is it possible?
I have found Handle Lookup API, but it looks like it has not been supported already.
https://learn.microsoft.com/en-us/linkedin/shared/integrations/people/handle-lookup?view=li-lms-2022-07
I am currently using a linkedin API with r_lightprofile in my application.
Two months ago, I sent a request for access to r_fullprofile using the Partner Program form.
https://business.linkedin.com/marketing-solutions/contact-us
http://prntscr.com/opfnpd
I also sent a request to the Marketing Developer Platform, but the request is still pending (http://prntscr.com/opfvfx)
After all this, I got an email with a form to fill out information about the company.
But after filling out the form, I did not receive an answer that the company is suitable or not suitable for full access.
1) How long does it usually take to get access?
2) Does the linkedin API have support? Email, Live chat or something else?
3) Have I done everything for access? Maybe I missed something?
4) Does Linkedin send an email in case of failure?
It's been a long way for me too, I'll give you some random tips:
Make sure your app is connected to a LinkedIn company page and that the status is Verified. To do this, from the app dashboard, add to the Team members an administrator of the LinkedIn company page (as Admin member) and let him access the app dashboard. He should be able to see a Verify button to confirm the authenticity of the app.
The only support that was really helpful to me was Zendesk.
In linkedin documentation i learn something like {service} in rest api call but I'm not able to understand that.
Can anyone please eloborate about this rest api.
Eg: https://api.linkedin.com/v2/{service}
For Receiving linkedin Feeds you can call this url
https://api.linkedin.com/v2/activityFeeds?q=networkShares
It will only give you the posts shared by your network.
For more details go through the documentation.
I'm not a LinkedIn partner - so I got an access token with r_basicprofile scope (and not r_fullprofile which is not available to me).
According to the docs - this api requires either r_basicprofile or r_fullprofile. However, I cannot get any of my calls to go through without returning a 403. Any ideas?
https://api.linkedin.com/v2/me
or (all basic profile fields)
https://api.linkedin.com/v2/people/(id:{profile ID})?projection=(id,firstName,lastName,industryId~)
Thanks,
Mike
If you are not a current LinkedIn Partner, you do not have access to our v2 API just yet! Try making a similar request using our v1 API:
https://api.linkedin.com/v1/people/~
See https://developer.linkedin.com/docs/v1/people/profile-api for more information about the Profile API.
I am trying to get latest 3 public activities of our company from linkedin (ex: http://www.linkedin.com/company/4043/activity) and present it on our website but unfortunately I dont see a clear explanation to do so in the API documentations. I registered an API Key but I am confused if I need to do OAuth if so against what and then what API to call to get publicly available info?
Is OAuth really needed for something that is available?
Can I store an OAuth token for an internal user and keep fetching data on that? I would really do not want to authenticated the site visitors with oauth to get free linkedin content.
This question is on the lines of this one, but I still wanted to ask and see if I could get a better response/answer.
To get the company updates from the LinkedIn API, you will need to reference the following document:
https://developer.linkedin.com/reading-company-updates
The API is currently in preview mode, but the above document addresses your question re: OAuth as well as shows the specific calls as well as sample output. If you have any questions after reviewing the docs, please feel free to visit our developer forums at:
https://developer.linkedin.com/forums/rest
And one of someone from our team would be more than happy to help you further.
Enjoy!
-Jeremy