FAQ Database Discussion Community


Undefined property: stdClass: error

php,json,api,twitch
sorry my english bad im trying twitch api with php but error <?php [email protected]_decode(file_get_contents("https://api.twitch.tv/kraken/streams/artemis")); $json->display_Name; ?> ...

Javascript external API calls with variable URL in for loop

javascript,api,for-loop,twitch
I am trying to call the Twitch API in a for loop where the URL being called changes with each iteration through the loop and the URL that gets called is actually one that was returned in the previous call. Why? - The Twitch API response limits you to 100...

Can't display Twitch API data using PHP

php,twitch
I want to display the last 100 followers on Twitch using their API on my website. However, I know very little about JSON. Currently I have this: $string = file_get_contents("https://api.twitch.tv/kraken/channels/pewdiepie/follows.json?limit=100"); $json=json_decode($string,true); But I can't get it in a while loop. I tried this: foreach ($json as $key => $value){ echo...

Accessing nested values in JSON data from Twitch API

python,dictionary,twitch
I am using the code: getSource = requests.get("https://api.twitch.tv/kraken/streams") text = json.loads(getSource.text) print text["streams"]["_links"]["_self"] text is a dictionary that I get by calling json.loads. I then try to get the nested values, eventually trying to get the url but this error shows up: Traceback (most recent call last): File "Twitch Strim.py",...

Greasemonkey: Unable to move div classes

javascript,html,greasemonkey,userscripts,twitch
I've been trying to use a personal grease/tampermonkey script for use on twitch.tv Currently I'm trying to move stats and stream-config-status to be above the dash-hostmode-contain. I found this post and tried re-working it to fit what I want. This is what I had setup http://jsfiddle.net/7L2s180s/3/ But I am pretty...

swfobject not working on iOS

embed,swfobject,twitch
I'm trying to embed Twitch player using Javascript API - here is documentation how to embed a player using swfobject - https://github.com/justintv/Twitch-API/blob/master/player.md. My Problem is that the code works great on desktop, but on mobile browsers - iOS (I haven't had a chance to check Android yet) script simply doesn't...

Python AttributeError: 'str' object has no attribute 'append' (Specific)

python,bots,irc,twitch
Currently having an issue with my Twitch chat bot, this error occurs when the bot picks up JTV sending a flag to op somebody in the channel (Giving them mod permissions). The problem I'm having is that this error sometimes occurs and sometime doesn't. Due to this, I cannot have...

Twitch: Read chat with php script

php,chat,twitch
I would like to access a twitch chat with a php script to retrieve the latest chat messages. But the twitch api seems not to support chat access. does anyone know a way how i can get the latest chat messages of a channel via a php script?

Theoretically speaking, is this possible? [closed]

macros,mouse,twitch
Okay, so I have come up with an idea that is based loosely on TwitchPlaysPokemon, I won't go into huge detail as it is a new idea, but I will cover the basics. What I would be looking to do is have a program that can, in a game, move...

TypeError: does not support the buffer interface Twitch IRC Chat Bot

python,python-3.x,irc,twitch
To start off, I couldn't find an answer anywhere. Im not sure if its something I need to import or if its just poorly done code. In a nut shell, with this project im going to make a better twitch follower notifier with SMS messages, and a lot of other...

Iterating through Twitch Json

json,vb.net,iteration,twitch
I'm not very good at this yet, not sure if my subject even accurately describes what I need. I know it's probably been answered, I'm having a hard time understanding the answers since they don't directly apply to my data. I am trying to figure out how I can iterate...

Twitch.tv Api C# Get Streams [closed]

javascript,c#,json,twitch
I want to create a Twitch.tv app for desktop Pc. I have read that Twitch api use Json for the streams. Can someone please explain me how I get the streams into a list? I plan to use C# get the list into a listbox but im stuck and cant...

Java HttpsURLConnection - TwitchAPI - Update Channel Information

java,api,twitch,httpsurlconnection
I tried to create a java Tool to change Twitch Channel Informations (status / game / delay). In the Documentation is an example with curl for working with the API to update channel informations: curl -H 'Accept: application/vnd.twitchtv.v3+json' -H 'Authorization: OAuth <access_token>' \ -d "channel[status]=Playing+cool+new+game!&channel[game]=Diablo&channel[delay]=0" \ -X PUT https://api.twitch.tv/kraken/channels/test_channel I...

Issues using strip() on a variable

python,python-3.x,twitch,urllib3
I'm trying to strip the characters b,'(). The issue I'm having is that it says TypeError 'str' does not support the buffer interface. Here are the relevant parts of code in this: import urllib3 def command_uptime(): http = urllib3.PoolManager() r = http.request('GET', 'https://nightdev.com/hosted/uptime.php?channel=TrippedNW') rawData = r.data liveTime = bytes(rawData.strip("b,\'()", rawData))...

Getting Twitch followers using Twitch API in PHP

php,twitch
What I'm trying to do is make a twitch follower alert in PHP. The only stuff so far that I have gotten done is find out where to get the info from. I need assistance decoding the info, and then getting the user name and setting it to a string....

XMLHttprequest not working the twitch.tv api

javascript,api,xmlhttprequest,twitch
So I've been trying to access the twitch.tv api but every time i go to make a request i keep on getting the error: "XMLHttpRequest cannot load https://api.twitch.tv/kraken/streams/normalice. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8080' is therefore not allowed access." I'm currently using the live-server package...