Skip to content

Conversation

@robbiemu
Copy link

this only fixes the unminified version.

for an overview of the core issue, see: https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.cxn9jkpgi

the reason you can't just use a 'header' or 'beforeSend' to attach the Client-ID is because it was a jsonp query, which makes a ghost <script> tag who can't take modified headers. So.. I manually backed it out of jsonp.

you would use it like:

<script src="https://cdn.rawgit.com/robbiemu/Twitch-Channel-Status/master/twitch-channel-status.js" data-clientid="_TWITCH_CLIENT_ID_"></script>

After merging, you might change the console log messages to suit the project. I do believe that at least 2 of the three of them are important :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant