Skip to content

Support for LinkedIn Field-Selector Notation #231

Closed
@nariman-haghighi

Description

@nariman-haghighi

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions