Class: Twitch::HypeTrainEventsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/twitch/resources/hype_train_events.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Twitch::Resource

Instance Method Details

#list(broadcaster_id:) ⇒ Object

Required scope: channel:read:hype_train Broadcaster ID must match the user in the OAuth token



5
6
7
8
# File 'lib/twitch/resources/hype_train_events.rb', line 5

def list(broadcaster_id:)
  warn "`hype_train_events.list` is deprecated because Twitch removed GET /helix/hypetrain/events. Use `hype_train_status.retrieve` instead."
  HypeTrainStatusResource.new(client).retrieve(broadcaster_id: broadcaster_id)
end