Skip to content

Instantly share code, notes, and snippets.

@aveek22
Created March 12, 2022 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aveek22/de44ea0d5a0d322a0ce98c2e26ea4502 to your computer and use it in GitHub Desktop.
Save aveek22/de44ea0d5a0d322a0ce98c2e26ea4502 to your computer and use it in GitHub Desktop.
# Get LinkedIn user ID
url = "https://api.linkedin.com/v2/me"
header = {
'Authorization' : f'Bearer {access_token}'
}
response = requests.get(url=url, headers=header)
response_json_li_person = response.json()
person_id = response_json_li_person['id']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment