Making Requests Without OAuth

Fantastic! Thank you so much for pointing me towards the Client Credentials flow, I think this is exactly what I was looking for. The next issue I’m getting is that I’m getting an Error 400 when using the following code:

url = ‘https://id.twitch.tv/oauth2/token
header = {
'client_id ': TwitchService.clientID,
‘client_secret’: TwitchService.clientSecret,
‘grant_type’: ‘client_credentials’,
‘scope’: ‘viewing_activity_read’
}
response = requests.post(url=url, headers=header)

As far as I can see I’m mimicking the request that is being shown on the website using the same URL and names for fields, sorry if I’ve missed something obvious with this and thanks for the help so far.

I’m referencing the guide here:
https://dev.twitch.tv/docs/authentication/getting-tokens-oauth#oauth-client-credentials-flow