Alvin Tandian
Alvin Tandian

Reputation: 181

LinkedIn V2 API return not found when called from Azure API Management

I am trying to call LinkedIn V2 API from Azure API Management, specifically the ugcPost API: https://api.linkedin.com/v2/ugcPosts

When the ugcPost API is called from our personal computer, the API is able to return the response successfully. However, when we attempt to call the ugcPost from Azure API Management, it responds back with status 404 (Resource not found).

{
  "serviceErrorCode": 0,
  "message": "Resource ugcPosts does not exist",
  "status": 404
}

Has anyone faced similar issue? Is there something in the LinkedIn Developer portal that we have to tweak for this to work?

Upvotes: 0

Views: 676

Answers (1)

Alvin Tandian
Alvin Tandian

Reputation: 181

Apparently, it is an issue with the URL configuration that somehow append my base API URL causing the final URL to be incorrect (e.g. https://api.linkedin.com/v2/ugcPosts/v2/ugcPosts).

After some URL reconfiguration, it is working fine now.

Upvotes: 1

Related Questions