Module: Twitch::Client::Streams

Included in:
Twitch::Client
Defined in:
lib/twitch/client/streams.rb

Overview

API method for streams

Instance Method Summary collapse

Instance Method Details

#create_stream_marker(options = {}) ⇒ Object



7
8
9
# File 'lib/twitch/client/streams.rb', line 7

def create_stream_marker(options = {})
  initialize_response StreamMarker, post('streams/markers', options)
end

#get_stream_key(options = {}) ⇒ Object



24
25
26
# File 'lib/twitch/client/streams.rb', line 24

def get_stream_key(options = {})
  initialize_response nil, get('streams/key', options)
end

#get_stream_markers(options = {}) ⇒ Object



11
12
13
# File 'lib/twitch/client/streams.rb', line 11

def get_stream_markers(options = {})
  initialize_response StreamMarkerResponse, get('streams/markers', options)
end

#get_streams(options = {}) ⇒ Object



15
16
17
# File 'lib/twitch/client/streams.rb', line 15

def get_streams(options = {})
  initialize_response Stream, get('streams', options)
end

#get_streams_metadata(options = {}) ⇒ Object

TODO: Can’t find this method in documentation, test it



20
21
22
# File 'lib/twitch/client/streams.rb', line 20

def (options = {})
  initialize_response StreamMetadata, get('streams/metadata', options)
end