import requests

url = 'https://id.twitch.tv/oauth2/token'
headers = {
    'client_id': 'jsz9jp0xbljz3045rrbait8tgf174w',
    'client_secret': '<KEY>',
    'grant_type': 'client_credentials'
}

x = requests.post(url, data=headers)
print(x.text)
import requests

url = 'https://id.twitch.tv/oauth2/token'
headers = {
    'client_id': 'jsz9jp0xbljz3045rrbait8tgf174w',
    'client_secret': '<KEY>',
    'grant_type': 'client_credentials'
}

x = requests.post(url, data=headers)
print(x.text)