Rest API - Authentication and Authorization
What is wrong with this code snippet for exchanging an authorization code?
import requests
response = requests.post('https://auth.example.com/token', data={'code': 'abc123', 'grant_type': 'authorization_code'})
access_token = response.json()['access_token']
print(access_token)