Class: Twitch::GoalsResource

Inherits:
Resource show all
Defined in:
lib/twitch/resources/goals.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:goals Broadcaster ID must match the user in the OAuth token



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

def list(broadcaster_id:)
  response = get_request("goals", params: { broadcaster_id: broadcaster_id })
  Collection.from_response(response, type: Goal)
end