C# code problem with client id

You get a Client ID from registering an app on https://dev.twitch.tv/dashboard/apps Your website doesn’t need to be finished to register.

I can confirm your code does work with a valid Client ID.