Module: Twitch::Client::Streams
- Included in:
- Twitch::Client
- Defined in:
- lib/twitch/client/streams.rb
Overview
API method for streams
Instance Method Summary collapse
- #create_stream_marker(options = {}) ⇒ Object
- #get_stream_key(options = {}) ⇒ Object
- #get_stream_markers(options = {}) ⇒ Object
- #get_streams(options = {}) ⇒ Object
-
#get_streams_metadata(options = {}) ⇒ Object
TODO: Can’t find this method in documentation, test it.
Instance Method Details
#create_stream_marker(options = {}) ⇒ Object
7 8 9 |
# File 'lib/twitch/client/streams.rb', line 7 def create_stream_marker( = {}) initialize_response StreamMarker, post('streams/markers', ) end |
#get_stream_key(options = {}) ⇒ Object
24 25 26 |
# File 'lib/twitch/client/streams.rb', line 24 def get_stream_key( = {}) initialize_response nil, get('streams/key', ) end |
#get_stream_markers(options = {}) ⇒ Object
11 12 13 |
# File 'lib/twitch/client/streams.rb', line 11 def get_stream_markers( = {}) initialize_response StreamMarkerResponse, get('streams/markers', ) end |
#get_streams(options = {}) ⇒ Object
15 16 17 |
# File 'lib/twitch/client/streams.rb', line 15 def get_streams( = {}) initialize_response Stream, get('streams', ) 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 ( = {}) initialize_response StreamMetadata, get('streams/metadata', ) end |