我正在使用java,我能夠獲取用戶訪問令牌。但是我無法從linkedin獲取數據。這裏是我的代碼:獲取LinkedIn用戶數據
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();
但是我得到未知的認證方案錯誤。 我也嘗試setHeader
而不是setQueryParameter
但同樣的事情! 請幫忙!