2016-06-29 1 views
0

Oauth 2.0의 최신 LinkedIn 자바 스크립트 API를 사용하여 웹 사이트에 내 프로필 세부 정보를 어떻게 얻을 수 있습니까?Linkedin API를 사용하여 웹 사이트에 프로필 세부 정보를 가져 오는 방법은 무엇입니까?

목표는 연결된 프로필을 사용하여 웹 사이트를 최신 상태로 유지하는 것입니다.

아래 시도

,

api_key: YOUR_API_KEY_HERE 
authorize: true 
onLoad: onLinkedInLoad 

// Setup an event listener to make an API call once auth is complete 
function onLinkedInLoad() { 
    IN.Event.on(IN, "auth", getProfileData); 
} 

// Handle the successful return from the API call 
function onSuccess(data) { 
    console.log(data); 
} 

// Handle an error response from the API call 
function onError(error) { 
    console.log(error); 
} 

// Use the API call wrapper to request the member's profile data 
function getProfileData() { 
    IN.API.Raw("/people/~:(id, first-name, skills, educations, 
      languages, twitter-accounts)").result(onSuccess).error(onError); 
} 

https://developer.linkedin.com/docs/apply-with-linkedin

임은 확실 나는이 작업을 수행하는 방법을 정확하게 누군가가 나에게 시작 얻을 수있는 팁을 줄 수 있지? 감사!

답변

0

Java에서 구현 한 JavaScript 래퍼 구현에 대해 많이 알지 못합니다. 그러나 여기에 사용자의 데이터를 가져 오는 기본 REST 구현을 사용하는 JQuery를 사용하는 좋은 자습서가있다. 희망이 당신을 돕고, 당신을 시작하게하십시오 :). http://www.kunal-chowdhury.com/2012/08/how-to-fetch-twitter-profile-information-using-jQuery-plugin-as-json-object.html?m=1

+0

감사합니다. 불량을 확인하고 다시 연락하십시오. :) –

관련 문제