I’m creating this topic because I’ve really not seen this asked before, either because it’s not been considered, or because I’m the only one unaware of it… So basically, I’m wondering if there’s IRC notifications for when a user purchases a game using the button below a stream. When I bought the E3 Digital Ticket, that alerted in the official Twitch channel’s chat, but I’m unsure if every game, such as Ghost Recon Wildlands, triggers a message in chat for the viewer to enter a message with (like resubs).
I can see it’s available for PubSub under “Commerce Events”, but does it trigger in IRC? If it does, is there a sample message to show the parameters?
If there isn’t, it could be a useful thing to implement!
It would seem that the UserNotice provides some additional information over the pubsub topic, such as the Crate contents if a crate is opened, assuming the crate(s) was opened before the user runs the share dialog, so you also gotcha watch for a message here.
@george Thank you for the IRC capture message, this seems very handy. I assume if we wanted to get the price of this game, we’d simply search an API for the parameter msg-param-asin=B06XK192R7; ? I’ll look into writing something that works around this, it seems nice and simple.
@BarryCarlyon Thank you for posting the PubSub sample, and for letting me know about the UserNotice providing extra information. I never actually knew it could share the contents of the crate, that’s a pretty neat feature!
I’ll get to work writing something that listens for these events, and does something with them. Thanks again for the help guys!
Thank you Barry for responding, and this quickly too! I’ll check out the Amazon API’s, I’d guarantee there’s an endpoint somewhere containing that data. Also, the API link you posted returns an Error 404, not sure if it’s been changed or something. I’ll let you know how it goes!