I'm using java and I'm able to get the user access token. However I can not fetch data from linkedin. Here is my code:
F.Promise<WS.Response> res2 =WS.url("http://api.linkedin.com/v1/people/~:(first-name,last-name,positions,picture-url)")
.setQueryParameter("Authorization","Bearer "+access_token)
get();
But I get Unknown authentication scheme error.
I also tried setHeader instead of setQueryParameter but same thing!
please help!!