Questions tagged [twitch-api]

Twitch is a live streaming service and global community for content spanning gaming, entertainment, music, sports, and more. Use this tag for questions related to the Twitch API, Extensions, Drops, or EventSub.

Official Twitch Links

Twitch API on GitHub

181 questions
0
votes
1 answer

Error with new Twitch Api Python Oauth token is missing

import requests if __name__ == '__main__': API = 'https://api.twitch.tv/helix/streams?user_login=rediban' Client_ID = "myid" OAuth = "mytoken" head = { 'Client-ID': Client_ID, 'OAuth': OAuth, } rq =…
Noah Schmidt
  • 26
  • 1
  • 7
0
votes
0 answers

Can you get a return URL by GET in JQuery or PHP?

Is it possible to code up a way where the code loads the specific URL and then gets the URL that is returned. For example, when I load this URL…
0
votes
1 answer

I receive 'str' object has no attribute 'callables'

Trying to go through the list and display the callables assigned in cmds This is in __init__.py: class Cmd(object): def __init__(self, callables, func, cooldown=0): self.func = func self.cooldown = cooldown self.next_use…
Bodhiston
  • 3
  • 2
0
votes
1 answer

New Twitch API getting json data Python 3

I am trying to get a python script to say whether a twitch channel is live but haven't been able to do it, any and all help would be appreciated. here are the docs I've been able to find https://dev.twitch.tv/docs/api/guide This is what I have atm…
0
votes
1 answer

Parse URI Fragment in Dart

I need to reliably get the access token from this string: final authString = "myApp:%23access_token=abcd1234asdf1qwerty&scope=channel_feed_read&token_type=bearer" I've decoded it Uri.decodeComponent(authString) but then I'm not sure how to get the…
0
votes
0 answers

EventHandler always null

I have a problem. I started working with TwitchLib to play some API and I have a problem with Events. Here I have the code from my class "ChatBot" where there is the whole main code for connecting to my Twitch account and receiving, for example,…
0
votes
1 answer

Error while sending a message to twitch chat with Javascript StreamElements

I am getting a 400 error when trying to send a message to twitches IRC chat with StreamElements API. Here is my code so far I know it is incorrect but I don't know how to pass the message to twitch in order for it to accept it. I am learning ajax…
Paul Hashmi
  • 456
  • 5
  • 18
0
votes
2 answers

Authenticate into Twitch API using a given token

i am currently searching for a way to login into the Twitch-API using an already given id-token (oauth or even better oidc) with or without a NodeJS backend. Background: I am using firebase connecting to various services next to Twitch-API such as…
0
votes
1 answer

c programming Twitch IRC chat bot. Cant connect but unable to joint room to read chat. Code below

I've provided a link to the c code below. I have an additional .h file which only contains the #define username and #define OAuth values. Since there private. The .h File also contain the function prototypes. https://pastebin.com/xg6axTzn char…
user1003967
  • 137
  • 2
  • 11
0
votes
1 answer

Converting a JSON payload into useful data in Java

Just to start off, I'm new to Java. I'm trying to make a notification system for Twitch using their API and an Arduino, and I'm currently stuck at the start pretty much. I am able to access the API and get information, but I don't know how to…
0
votes
1 answer

How to get string from httpclient request

I tried to get twitch api information but request dosent show anything using (var httpClient = new HttpClient()) { using (var request = new HttpRequestMessage(new HttpMethod("GET"),…
user12041324
0
votes
1 answer

How to get JSON response Twitch

I try to get JSON response from https://api.twitch.tv/kraken/users?login=CHANNEL NAME BUT {"error":"Bad Request","status":400,"message":"No client id specified"} I expect to get: { "_id": "44322889", "bio": "Just a gamer playing games and…
user12041324
0
votes
1 answer

How to fix "Bad Request","status":400"

I try to get twitch api with following website https://api.twitch.tv/kraken/streams/ chennal name ,but nothing happened and get error {"error":"Bad Request","status":400,"message":"No client id specified"} I expect to get viewers count and follower…
user12041324
0
votes
0 answers

I have some questions about new Twitch API

i create my own browser extension for my twitch channel. I coded the javascript extension with the Twitch Kraken API but it has been changed. The new Twitch API is 'https://api.twitch.tv/helix/streams?game_id=33214' I replaced the API in my code…
Julien
  • 1
0
votes
0 answers

Is there anyway to login to twitchtv using android app and get the token?

I'm develop a application which have to connect Twitch.tv account with the application.I read the docs but cant find anything about sdk or something i can do to login and get the token or userId.Anyone ever did this before?