Giter Club home page Giter Club logo

Comments (2)

BarryCarlyon avatar BarryCarlyon commented on August 29, 2024 1

The CLI is just a test tool to send an example payload to your EventSub Callback.

So you don't have to use the dashboard/live Twitch to Trigger a "Channel update"

Essentailly the migration from WebSub to EventSub is straightforward:

  • Challenges are over POST now instead of GET
  • The Signature is calculated slightly differently.
  • The payloads are a different format

Depending on your language of choice, I have a node and a PHP example over at https://github.com/BarryCarlyon/twitch_misc/tree/main/eventsub/handlers

And you can use the CLI to punt test messages at your callback based on my code.

So the CLI just does the same thing as the live website does. It's just easier to spam a CLI command than to ask the live system to do send a payload. (and lets you test parsing subscriber data without needing an affiliate or partner or to spend money to trigger an event)

from twitch-cli.

adriel avatar adriel commented on August 29, 2024

ooh, that would certainly explain my struggle to find the documentation for it. Updated my old code from WebSub to EventSub and seems to be working now. Will have to give this cli a try to send some dummy events through.

Thank you for the clear and thorough reply.

from twitch-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.