Class: Twitch::GoalsResource
- Defined in:
- lib/twitch/resources/goals.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(broadcaster_id:) ⇒ Object
Required scope: channel:read:goals Broadcaster ID must match the user in the OAuth token.
Methods inherited from Resource
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 |