That will not print a token. The OAUTH2 flow (which is demonstrated on Twitch’s site) requires you to request the authorization which opens a web browser window, owned by Twitch, which authenticates the user, and then that page redirects the user back to the authentication page that you defined when you defined your application which then has to either retrieve the data from the body of the JSON message or from the URL (depending upon what type of token you request).