lib/twilio-ruby/rest/media/v1/player_streamer.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/media/v1/player_streamer.rb in twilio-ruby-6.11.0

- old
+ new

@@ -16,10 +16,11 @@ module Twilio module REST class Media < MediaBase class V1 < Version class PlayerStreamerList < ListResource + ## # Initialize the PlayerStreamerList # @param [Version] version Version that contains the resource # @return [PlayerStreamerList] PlayerStreamerList def initialize(version) @@ -48,10 +49,11 @@ 'StatusCallback' => status_callback, 'StatusCallbackMethod' => status_callback_method, 'MaxDuration' => max_duration, }) + payload = @version.create('POST', @uri, data: data) PlayerStreamerInstance.new( @version, payload, ) @@ -182,10 +184,11 @@ ## # Fetch the PlayerStreamerInstance # @return [PlayerStreamerInstance] Fetched PlayerStreamerInstance def fetch + payload = @version.fetch('GET', @uri) PlayerStreamerInstance.new( @version, payload, sid: @solution[:sid], @@ -202,9 +205,10 @@ data = Twilio::Values.of({ 'Status' => status, }) + payload = @version.update('POST', @uri, data: data) PlayerStreamerInstance.new( @version, payload, sid: @solution[:sid],