How to create new LinkedIn text post using LinkedIn API?
Hey,
I want to create a new text post on behalf of the user. However, after extensive exploration, I have discovered that I require a User Profile URN to initiate this action. Despite several hours of effort, I have been unable to locate a reliable resource to obtain this information
When I call this API endpoint (to get member URN):
https://api.linkedin.com/v2/me
It showed this error:
{'serviceErrorCode': 100, 'message': 'Not enough permissions to access: GET /me', 'status': 403}
I have both products/permission enabled, the 'Sign In with LinkedIn using OpenID Connect' and 'Share on LinkedIn'.
.
Moreover, I'm using these endpoints to create new posts:
https://api.linkedin.com/v2/posts
And
https://api.linkedin.com/v2/ugcPosts
Both require URN.
If there is an alternative method or resource available to facilitate the creation of a new text post, I would greatly appreciate your guidance. Your assistance in this matter would be invaluable to me.
Thank you for your consideration.