I cant seem to display User on twitch API link

I cant seem to display User on twitch API link
0.0 0

#1

I have seemed to successfully hide and show All twitch users. What I cant seem to achieve is to display users that are currently streaming.

I tried to implements this

              $("#live").click(function() { 
        if(data.stream !== null){
          $( ".container" ).append( "<p>"+freeCode+"</p>" )
        }else if(data.stream === null){
            $("p").addClass("hide") 
              
        }

just to see if it worked but it failed.

Here is a link to my codepen


#2

Hi @zootechdrum,

The link you’ve provided doesn’t go to codepen, can you provide the correct link?