Note that there are some explanatory texts on larger screens.

plurals
  1. POLinkedin API - Unknown field {} in resource {Person}
    primarykey
    data
    text
    <p>After hundred of tests I still cannot access information about one of my level 1 contact throught he LinkedIn API.</p> <p>I always get the very annoying "Unknown field {} in resource {Person}" error.</p> <p>I use OAuth2. The following request works perfectly :</p> <p><a href="https://api.linkedin.com/v1/people/~?oauth2_access_token=AQW" rel="nofollow">https://api.linkedin.com/v1/people/~?oauth2_access_token=AQW</a>...</p> <p>That one does not :</p> <p><a href="https://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fsebastienrousset?oauth2_access_token=AQW" rel="nofollow">https://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fsebastienrousset?oauth2_access_token=AQW</a>...</p> <ul> <li>The given profile url is the public profite url of a level 1 contact</li> <li>I've seen many posts about that particular error related to slash encoding => my encoding is correct.</li> <li>Yes I gave the application the default scopes basicprofile, fullprofile and network</li> <li>I did the same in the explicit scope when requesting the OAuth2 authorization.</li> </ul> <p>What is the point I'm missing ? Any help would be appreciated</p> <p>Just in case, let me add a sample code</p> <pre><code>// works //var url = "https://api.linkedin.com/v1/people/~?oauth2_access_token=" + tokenAccess; // does not work var url = "https://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fsebastienrousset?oauth2_access_token=" + tokenAccess; // create the request var request = (WebRequest.Create(url) as HttpWebRequest); string message; try { // now get a response var response = (request.GetResponse() as HttpWebResponse); message = "success"; } catch (WebException wexc) { // returned status code is 400 (BadRequest) message = "failure - HTTP " + ((HttpWebResponse)wexc.Response).StatusCode; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload