Thanks for the reply. It turned out to be the previous curl call than this that wasn’t pulling the auth keys properly. Couldn’t get it right myself so use the twitch interface to pull that then the code above to get the user stuff. Just incase anyone else comes across the same kind of problem.