Access Token Exchange For Linkedin

[Solved] Access Token Exchange For Linkedin | Basic - Code Explorer | yomemimo.com
Question : access token exchange for linkedin

Answered by : maddirala-achyuth

def get_access_token(authorization_code): """ Given a authorization `code`, this function will return you `access_token` which can then be used to access a user's Linkedin profile. """ LI_ACCESS_TOKEN_EXCHANGE_URL = 'https://www.linkedin.com/oauth/v2/accessToken' access_token = requests.post(LI_ACCESS_TOKEN_EXCHANGE_URL, params={ 'grant_type': 'authorization_code', 'code': authorization_code, 'redirect_uri': LINKEDIN_REDIRECT_URI, 'client_id': LINKEDIN_CLIENT_ID, 'client_secret': LINKEDIN_CLIENT_SECRET, }).json()['access_token'] return access_token

Source : https://nubela.co/blog/ultimate-guide-to-linkedin-api_people-profile-api_with-python-examples/ | Last Update : Fri, 27 May 22

Answers related to access token exchange for linkedin

Code Explorer Popular Question For Basic