title: Swift LinkedIn Login: Get Public Profile URL
body: <p>I'm trying to get the User's LinkedIn <em>Profile URL</em> using LinkedIn SDK and Swift 3. I have a functional login but I can't figure out how to retrieve the Profile URL data I requested. </p>
  
  <pre><code>self.linkedinHelper.requestURL("https://api.linkedin.com/v1/people/~:(public-profile-url)?format=json", requestType: LinkedinSwiftRequestGet, success: { (response) -&gt; Void in
  
  print("Request success with response: \(response)")
  </code></pre>
  
  <p>This code prints a success, and I can see the profile URL. I cannot figure out how to extract the URL from the <code>response</code> variable. The type of <code>response</code> is <strong><code>LSResponse</code></strong>. How can I get the <code>public-profile-url</code> data from the <code>response</code> variable?</p>
  
  <p>Thanks!</p>