I want to get token's metadata by using token introspection endpoint in Linkedin.
import requests
headers = {"Content-Type": "application/x-www-form-urlencoded"}
client_id=1234
client_secret=4567
token= 435kwer
url = 'https://www.linkedin.com/oauth/v2/introspectToken?client_id={}&client_secret={}&token={}'.format(client_id,client_secret,token)
response = requests.post(url,headers=headers).json()
print(response)
I get the following error
{
'error': 'invalid_request',
'error_description': 'A required parameter "client_id" is missing'
}
I don't know why am I getting this error.
I used the following URL as a reference.