Okay so I tried OAuth Authorization Code Flow (User Access Tokens) and used the following code:
getURL = "https://api.twitch.tv/kraken/oauth2/authorize"
getHeaders = {"client_id" : "" + config.CLIENT_ID + "",
"redirect_uri" : "http://localhost",
"response_type" : "code",
"scope" : "channel_editor"}
getResponse = requests.get(url=getURL, headers=getHeaders).json()
I’m getting 400 ‘no client id specified’. If I copy and paste the GET request (putting in client id, redirect uri, response type and scope) into a web browser I get taken to localhost with a code and channel_editor scope though.
Edit: noticed I had to use params instead of headers in the get request. Removing the .json() from the end of getResponse gives me code 200 which I think is good?