title: Get LinkedIn basic profile from someone through the LinkedIn URL
body: <p>I would like to know if its possible to get the LinkedIn basic profile from someone ?</p>
  
  <h2>Example</h2>
  
  <p>When I register a new user on the system, wish it were possible to get the basic information for this new user to note the URL of that person LinkedIn for example.</p>
  
  <p>If it's possible, how can I do it with Javascript SDK ?</p>
  
  <h3>Code</h3>
  
  <pre><code>// 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 basic profile data
  function getProfileData() {
      IN.API.Raw("/people/~").result(onSuccess).error(onError);
  }
  </code></pre>