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
16
votes
4 answers

How to loop a task in discord.py

I am experimenting with making my own little discord bot that can get information from Twitch, but I'm stumped on how to make the bot loop and check for a condition. I want the bot to loop a section of code every few seconds that checks if the…
sharp312
  • 183
  • 1
  • 2
  • 8
5
votes
0 answers

Twitch OAuth access_token instead of Bearer token

Twitch has New API and V5 API, and I want to use exactly the V5 API since that's API gives a little bit more info about channel. And when I'm use assess_token from browser dev tools, API is working. But when I'm using assess_token got by Omniauth…
O.Vykhor
  • 461
  • 1
  • 5
  • 18
4
votes
1 answer

How to properly pass headers when using SWR?

I have decided to attempt to move majority of my API function to SWR as it simply allows me to do so much more! Problem However, I am having a huge issue where I cannot figure out how to properly pass headers into SWR. I've looked at the docs and…
MatDoak
  • 132
  • 5
  • 17
4
votes
3 answers

How do you send a message in TwitchIO that's not a response to a command?

I'm setting up a python TwitchIO chat bot. The getting started example has this: async def event_message(self, message): print(message.content) await self.handle_commands(message) @commands.command(name='test') async def my_command(self,…
Alan W. Smith
  • 24,647
  • 4
  • 70
  • 96
4
votes
2 answers

Reactjs error: Uncaught (in promise) Error: Request failed with status code 401

Actually I am working on Twitch Tv dashboard in react.js by following this tutorial https://www.youtube.com/watch?v=VTY6ZzDTV3A&t=197s Everything was working but my twitch api is not working, please can anyone help me to sort it out this bug. This…
bombom
  • 107
  • 2
  • 12
3
votes
1 answer

SWR exposes client-id and Bearer tokens in every api call, I should be concered right

Long story short I have just somewhat finished building an application with NextJs, NextAuth and SWR, I use SWR to call multiple Twitch API's, to authenticate the Twitch API I use my Twitch applications Client-Id, and the logged in users Bearer…
MatDoak
  • 132
  • 5
  • 17
3
votes
1 answer

Integrate custom Oauth provider with firebase.auth().signInWithRedirect?

I setup a Twitch OAuth integration using the Instagram example, now I can login into my app by opening the popup.html page that the example gave me. Here's my adapted code: 'use strict'; const functions = require('firebase-functions'); const admin…
Fez Vrasta
  • 14,110
  • 21
  • 98
  • 160
3
votes
1 answer

Twitch Helix API: Invalid OAuth Token Error

I am using the Twitch Helix API and creating an open source Deno module. I have been trying to test out the API, but whenever I send fetch requests, it returns the following: { "error": "Unauthorized", "status": 401, "message": "Invalid…
sno2
  • 3,274
  • 11
  • 37
3
votes
1 answer

How to Manage twitch API Errors in Python?

I am using twitch api (twitch-python and python-twitch-client)to scrape twitch. I am not sure how should I manage these httperrors as I am not using urllib.request. game = [] for a in lis[68:]: b = client.videos.get_by_id(a).game …
frifin
  • 109
  • 5
3
votes
1 answer

NodeJS - How to use the twitch API with OAuth and code token

Hey today i tried to use the twitch api to fetch user data with this endpoint GET https://api.twitch.tv/helix/users i wanted to use the authentification feature to skip the api-limit. I choose ExpressJs for the web framework Here is my app.js…
3
votes
1 answer

How to raise security for my Unity project?

In a nutshell, my project consists of: A secure RESTful API web service (hosted on Heroku), handling requests/responses for a database. It accepts & returns JSON data A Unity desktop application, which doubles as a Twitch API chat bot, and…
RectangleEquals
  • 1,825
  • 2
  • 25
  • 44
3
votes
1 answer

How to Get Twitch Video Thumbnail URL?

Video-sharing websites such as Youtube has a endpoint for video thumbnails Example: http://img.youtube.com/vi/youtube_id/default.jpg where youtube_id = the id of the video So I can just do
95faf8e76605e973
  • 13,643
  • 3
  • 24
  • 51
2
votes
1 answer

I wanted to create my analogue of Neuro-sama for twitch but

I started learning Python a few days ago and the first thing I did was to make a Python application with a query form where we could ask a question and get a voiced Text-To-Speech answer, and the day before I found out that there is such a…
2
votes
0 answers

Trying to get Twitch user name & check if its valid keeping running into an error Parse the body

I'm trying to parse so I can check if the username is valid or not. Though I have little to no experience working with JSON parasing in NodeJS. I'd appreciate some help on this issue. This has been a struggle moving over to NodeJS and trying to work…
R3D
  • 29
  • 2
2
votes
1 answer

How to get information if someone redeem points?

tmi.twitch.tv does not support Channel Points what should I do? I couldn't find any other alternatives.
yoursempai
  • 21
  • 3
1
2 3
11 12