Using headers is not overly complicated, it’s a very basic part of making HTTP requests and is dealt with easily with all proper HTTP request libraries. You can even look at the docs, the curl example to use Get Streams is just 2 lines.
The sort of error you’re describing doesn’t sound like anything to do with Twitch, and most likely your code/improper use of the HTTP library you’re using.