In my code I only use the client_id to get the Bearer token then I don’t use the Client-ID anymore.
Ah yes, I looked at the wrong line of code, GET is correct here.
36 url = 'https://api.twitch.tv/helix/users'
37 parameters = {'login': '(username)'}
38 if len(access_token):
39 print "using access_token"
40 headers = {'Authorization': 'Bearer ' + access_token}
41 else:
42 headers = {'Client-ID': client_id}
43 r = requests.get(url, headers=headers, params=parameters)