Hello, I am doing an extension for a friend in javascript. I’m trying to return the game my friend plays. There is my code actually :
. Thanks for helping me.Call Streams end point to get GameID (if live)
Then call games to game the game data
Your code looks fine but it’s using Kraken v5
Which you can use, but it’s deprecated, the game name is in the response payload.
Response → stream → channel → game
First thanks for your help, but i try to return the game but its showing me " undefined ". I dont understead how to do. My code now :
var data = JSON.parse(xhr.responseText);
if (data.stream === null) {
} else {
var game = data.stream.game;
}
1 Like
Thanks for your help dude it’s working ur awesome
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.