Skip to content

Instantly share code, notes, and snippets.

@ramibch
Forked from aveek22/social_linkedin_profile.py
Created November 10, 2022 08:36
Show Gist options
  • Save ramibch/db68d87b2d23896e3470b441cb102a85 to your computer and use it in GitHub Desktop.
Save ramibch/db68d87b2d23896e3470b441cb102a85 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