Twitch api doesn't work

Twitch api doesn't work
0.0 0

#1

the url :https://wind-bow.glitch.me/twitch-api/streams/stream_name?callback=?
i try it with
$.getJSON(url,function)
and
$.ajax({url:url,type:“GET”,datatype:“jsonp”,function()}
and in the 2 cases when i
make
alert(typeof(json))
even inside success it show undefined
i change it from …glitch.me to .gomix.me and also
undefined
the link to my work is
https://codepen.io/ayman-ayman/pen/WXNjgP


#2

You have a typo in your success callback => function(josn). Also, no need to use jsonp.