Twitch api cURL php return Invalid OAuth token error

Failed with 0 doesn’t offer any information as to what the issue is.

In most cases, as this is locahost, this suggests a problem with SSL/TLS negotiation most likely that your local SSL/TLS cert bundle is invalid/out of date and needs to be updated

Refer to the instructions for this for whatever is running/providing your localhost