how to pass urn to linkedin rest api /comments

fra 0 Reputation points
2023-09-06T19:58:13.68+00:00

Dera all,

I am trying to get a list of comments using the new rest apis, I am setting a GET to

 	https://api.linkedin.com/rest/socialActions/urn:li:share:7105273271557726208/comments

where is a real post I've created urn:li:share:7105273271557726208

and I got back

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.linkedin.com/rest/socialActions/urn:li:share:7105273271557726208/comments

my headers are

"Authorization": f"Bearer {self.token}",
"Content-Type": "application/json",
"Linkedin-Version": "202304",

I am also wondering if there is a migration guide since for creating posts I am using the old

https://api.linkedin.com/v2/ugcPosts

Thanks

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
402 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. fra 0 Reputation points
    2023-09-10T07:24:49.1466667+00:00

    any help please?

    0 comments No comments