hey,
why do i get this error? i’m trying to init Twitch but the response is always that. i’m using the js sdk.
and it is not possible to get a streams-list. i get this error: Failed to load resource: the server responded with a status of 400 (Bad Request)
my redireced uri is localhost.
because it is running on my laptop(xampp)
here is my code
< script src="//code.jquery.com/jquery.min.js">
< script src=“https://ttv-api.s3.amazonaws.com/twitch.min.js”>
< script src="/dev/js/twitch.js">
< script>Twitch.init({clientId: ‘5dzn1kp5c9qqz03rg8f17qp656fcv6h’}, function(error, status) {
if(error)
{
console.log(error);
}
if(status.authenticated)
{
isInit=true;
console.log(status);
}});
Twitch.api({method: 'streams', params: {game:'Diablo III', limit:3} }, function(error, list) {
console.debug(list);});
</script>