4

I want to get shares by owners from LinkedIn api. I used the following url:

https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:person:{accountId}

But I become this error:

{ "serviceErrorCode": 100, "message": "Field Value validation failed in PARAMETER: Data Processing Exception while processing fields [/owners]", "status": 403 }

what is wrong? Can someone help me?

Thank you

Matteo
  • 37,680
  • 11
  • 100
  • 115
vDrews
  • 155
  • 5
  • 14
  • 1
    take care that the id of a person is an alphanumeric value, something similar to `yrZCpj2Z12 ` the the call should be like `https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:person:yrZCpj2Z12` – Matteo Feb 07 '19 at 09:14
  • I use the Id that i become when i call https://api.linkedin.com/v2/me?projection=(id) isn't this right? – vDrews Feb 07 '19 at 09:30
  • yes, it works for me. Verify your app/token use `r_member_social` for member shares – Matteo Feb 07 '19 at 10:26
  • thank you i will test it an write a comment again. :) – vDrews Feb 08 '19 at 06:27

1 Answers1

2

In this endpoint, make sure you doing request without X-Restli-Protocol-Version in your request headers.

Also urn must be escaped.

May be useful for someone, because I had this issue and banged head until i got help from live support.

alexey_the_cat
  • 1,812
  • 19
  • 33