Hi All,
Im hoping someone can help an amateur wrap his head around JSON requests, im just trying to grab info a users stream so i can see if they are online at all. I have looked online and cant really see a subject that pinpoints my issue.
I have the following code…
<script src="https://ttv-api.s3.amazonaws.com/twitch.min.js"></script>
<script>
Twitch.init({ clientId: 'swohi5eqsc4wmjsffk4fqunm0vuvr30' }, function (error, status) {
// the sdk is now loaded
$.getJSON('https://api.twitch.tv/kraken/streams/godot.json&callback=?', function (data) {
});
});
</script>
However i can see that in the console of chrome its telling me ‘Uncaught SyntaxError: Unexpected token :’
All i really want is a simple way to pull that information and im limited by JS due to trying to implement this in a CMS.
Any help is appreciated.