Here we have 2 workarounds.
Configuration of linkedIn developer api
In order to fetch records, first we need to create developer api in linkedin which will act as token/identity while fetching data from other linkedin accounts.
So to create api, navigate to https://linkedin.com/developer/apps and click on 'Create Application'.
After navigating, fill in details like name, description and other required fields and then submit.
As we submit, it will create Client ID and Client Secret shown below, which we will be using in our code while communicating to fetch records from other LinkedIn account.
Note: We need to provide localhost Url here under Oauth 2.0. I am using my localhost, but you can probably use other production URLs under Oauth 2.0 where your app is configured. It will make your api consider the Url as trusted which fetching records.
For getting user details like first name, last name,User image can be written as,
In the same way we can also fetch records of any organization with the companyid as keyword.
We can get multiple metadata while fetching records for any any organization. We can get company updates as shown below.
We can also fetch any company specific data like company job updates/post, total likes, comments, and number of views along with a lot of metadata we can fetch which I have shown below.
Thank you for reading !
Sometimes you need to render HTML elements on a web page. And like Goldilocks' search for "just right", you have to try a few techniques before you find the right one. Using a framework may be too hard. Using pure HTML and the DOM API may be too soft. What you need is something in the middle that is just right. Is lit-html "just right"? Let's find out.