Authorizing with LibCurl in C

Twitch employs the OAuth 2 spec and doesn’t allow apps to use the password grant flow, so you have no ability to POST your username and password to Twitch to get a token.

Follow the step by step instructions at https://github.com/justintv/Twitch-API/blob/master/authentication.md#authorization-code-flow on how to integrate Twitch authentication.