Help with channelfeed

Hej guys, so i tried an old script of mine which worked ~6 month ago and it seems that it broke with the new API.
I cant find the mistake to be honest, I tried different approches but I cant get it running.
The code should just return the latest channel feed, i tried to change the channel name with the channel ID but still bad luck with it.

          Twitch.api({ method: '/feed/kobiQQ/posts' }, function (error, channelpost) {
          var date = channelpost.posts[0].created_at;
          var text = channelpost.posts[0].body;

          console.log(channelpost.posts[0]);
          });

The error in the console.
Uncaught TypeError: Cannot read property ‘posts’ of null

Edit by now I know where the mistake happend
(https://api.twitch.tv/kraken//feed/kobiqq/posts?oauth_token=xxx ) there is twice a //

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.