How to get username from twitch API

The user has not shown what res contains

The showed what they got from chrome, not whatever https.get is returning.

And their presented code doesn’t declare what https is