Hi @mahesh_tesla
The link you have attached talks about the oAuth flow which will need browser intervention in order to complete the authentication process.
You can go for the below approach with client credential flow if its a company account or a generic account.
1) Get the access token by sending the clientID and secret . Can be created as a token service and pass the credentials through OSGI configs.
2) Once you get the token you can hit the required API by passing the the authorization and retrieve the response.
3) same can be retrieved in front end using a servlet or can be dynamically included on the page
https://learn.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow?context=linkedin%2Fcontext
AEM REST API integration example
https://kiransg.com/2021/11/08/aem-rest-service-using-http-client-factory/
Hope this helps