Skip to content

Instantly share code, notes, and snippets.

@rockBreaker
Last active August 29, 2015 14:15
Show Gist options
  • Save rockBreaker/ab1701f4924f6ea74eda to your computer and use it in GitHub Desktop.
Save rockBreaker/ab1701f4924f6ea74eda to your computer and use it in GitHub Desktop.
(defn linkedin-profile
"linkedin API call for the current authenticated users repository list."
[access-token]
(let [url (str "https://api.linkedin.com/v1/people/~?format=json?access_token=" access-token)
response (client/get url {:accept :json})
profile (json/read-str (:body response) :key-fn keyword)]
profile))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment