Closed
Description
Trying to make calls like [1]:
http://api.linkedin.com/v1/people/~:(id,first-name,last-name,industry)
I'm not sure RestSharp properly handles these scenarios as I receive a 401 unauthorized with either of these cases:
request = new RestRequest("v1/people/~{fields}", Method.GET);
request.AddParameter("fields", ":(id,first-name,last-name,industry)", ParameterType.UrlSegment);
request.AddParameter("format", "json");
Or
request = new RestRequest("v1/people/~:(id,first-name,last-name,industry)", Method.GET);
But have no trouble accessing:
request = new RestRequest("v1/people/~", Method.GET);
Which leads to me to believe that the 401 is not on the LinkedIn side but on how the request is formatted.
[1] - https://developer.linkedin.com/documents/field-selectors
Metadata
Metadata
Assignees
Labels
No labels