LinkedIn: API to get leads by URN? - linkedin

I'm integrating against LinkedIn's webhook to get leads automatically, when an ad form is filled out. The docs for the lead notification webhook show the response will contain a adFormResponseUrn, but the API to list leads only takes a time- / date-range. I could periodically poll that API, and filter out leads we've already processed, but would prefer to get leads by webhook. What API can get leads with those URNs?
I've tried searching the rest of the docs, LinkedIn's help section, the answers section of Microsoft's docs. The only question I can find here in Stack Overflow, is for a pre-built integration, not using the webhooks and APIs.

The API to get leads by ID is here, and webhooks may be enabled by this API.
(There's new docs added since I asked this question.)

Related

Is the LinkedIn Compliance API still accessible?

I have been looking into de LinkedIn Compliance API, since our goal is to:
Allow users to send connection requests / "invitations"
Send chat messages to existing connections
Get the conversation history with a connection
But, as it seems, the API could be closed for new connections... While it is not mentioned in the docs of the Compliance API itself, or in its changelog, it is said to be "closed" on this page. Also, when trying to start a new application integration within the LinkedIn developer platform, it is not listed as an option.
So my question is twofold:
Is it still possible to connection to the LinkedIn Compliance API? (after being authorized, of course)
If not: could above three aims be achieved through another API? I have been browsing many of the docs, but was not able to find a substitute LinkedIn solution yet.

Does LinkedIn Rest API support Groups?

I have managed to successfully post profile status updates and company status updates, but is it possible to use their API to send group updates?
I've seen some references to their Partner Program and I suspect that I might need to join that in order to unlock more of their API, however, this is currently unclear.
You are correct. Access to Group posting API calls requires a partnership to help reduce abuse of the API.
You can apply for partnership with LinkedIn here: https://developer.linkedin.com/partner-programs/apply

LinkedIn New API - Can't Get r_network Permission

I inherited a program that was written with the old LinkedIn API, and I'm trying to migrate it to the new API. When I try to get the r_basicprofile permission, my oauth token works. However, when I try r_network or rw_nus, I get a response
invalid scope -- your application has not been authorized for
r_network.
Yet, when I go to www.linkedin.com/developer/apps/xxxx/auth, the boxes for r_network and rw_nus are checked.
I.e., A request to
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_basicprofile&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
works, but a request to
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_network&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
gives that error. What am I doing wrong?
As of May 15,
After the grace period expires, several REST API endpoints will no longer be available for general use. The following endpoints are the only ones that will remain available for use:
Profile API — /v1/people/~ `
Share API — /v1/people/~/shares
Companies API — /v1/companies/{id}
If your application is currently using any other API services (e.g. Connections, Groups, People Search, Invitation, Job Search, etc.) you will have to apply to become a member of a relevant Partner Program that provides the necessary API access to continue to leverage any of the endpoints that are not listed above.
It looks like linkedin no longer wants to share anything with their API. Creating a new app indicates that the only possible options are r_basicprofile, r_emailaddress, rw_company_admin, and w_share:
TLDR: they have locked down the API and restricted the usage to an extremely limited set of access points.
I did some more digging. The linkedin website is misleading. On my app linkedin page, it says that I'm approved for rw_nus and r_network, but on this page
https://developer.linkedin.com/support/developer-program-transition
it says those are no longer approved.
So the app home page in linkedin incorrectly said I had those permissions.
Heres the link if you want to Apply for Linkedin
https://help.linkedin.com/app/ask/path/api-dvr

How to get network updates from LinkedIn?

I'm working on updates of exisitng iOS app which uses LinkedIn REST API.
Earlier to get posts of user I made request to https://api.linkedin.com/v1/people/{id}/network/updates?format=json
I need to get r_network permission to accomplish that. But now with changes in API that request doesn't work. I couldn't find any useful info in Developer Program Transition Guide nor in developer docs.
According to the transition guide, there are only 3 endpoints that are generally available:
Profile API — /v1/people/~
Share API — /v1/people/~/shares
Companies API — /v1/companies/{id}
Your request is clearly not one of these endpoints. If you have not begun a discussion with people in the partnership program, you should start that process now.

Get linkedin public status updates

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

Resources