title: Getting basic profile and email address through linked api
body: <p>I have integerated linkedin in my website in php. When user click on a button 'connect with linkedin.' The user is redirected to the linkedin login page. When user logs in, it is redirected to the page I have defined. The problem is how can I retrieve user's basic profile and email address after the user has logged in. I referred to this link for asisstance 
  <a href="http://developer.linkedin.com/documents/authentication" rel="nofollow">http://developer.linkedin.com/documents/authentication</a></p>
  
  <p>Here is my code for redirecting to the linkedin authorization page:</p>
  
  <p>header('Location: ' . '<a href="https://www.linkedin.com/uas/oauth2/authorization?response_type=code&amp;&amp;client_id=1ba8ogpm9e05&amp;scope=r_basicprofile%20r_emailaddress&amp;state=STATE&amp;redirect_uri=http://127.0.0.1/linkedin/test.php" rel="nofollow">https://www.linkedin.com/uas/oauth2/authorization?response_type=code&amp;&amp;client_id=1ba8ogpm9e05&amp;scope=r_basicprofile%20r_emailaddress&amp;state=STATE&amp;redirect_uri=http://127.0.0.1/linkedin/test.php</a>');</p>
  
  <p>in this url the redirect_uri is the page where to redirect the user after authorization. So how do I retrieve user basic profile and email address?</p>