I am so new to this live or not respond using API

Hello, how do i get if a person is live in my browser window?

using the twitch api?

i have come to this spot:
https://api.twitch.tv/kraken/streams/channel_name?client_id=xxxxxx

response code:
{“error”:“Gone”,“status”:410,“message”:“The API version you are looking for is in another castle. See https://dev.twitch.tv/docs”}

The Oauth token is the localhost
http://localhost

I covered this in this recent post

Due to upcoming changes to the Twitch API, you don’t due to oAuth requirements (unless using implict auth but you don’t want to authenticate random website visitors)

This indicates you didn’t set the required version header as documented

This is wrong, you need to use the channel ID and the client_id should be sent as header

So you are potentially leaking your oAuth token in a webpage to other users? Assuming you have not used implicit auth? This is not allowed, an oAuth token is like a Password, and shouldn’t be left in front end code, where others can see other peoples tokens.

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