lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb in twilio-ruby-6.11.0

- old
+ new

@@ -16,10 +16,11 @@ module Twilio module REST class Bulkexports < BulkexportsBase class V1 < Version class ExportConfigurationList < ListResource + ## # Initialize the ExportConfigurationList # @param [Version] version Version that contains the resource # @return [ExportConfigurationList] ExportConfigurationList def initialize(version) @@ -57,10 +58,11 @@ ## # Fetch the ExportConfigurationInstance # @return [ExportConfigurationInstance] Fetched ExportConfigurationInstance def fetch + payload = @version.fetch('GET', @uri) ExportConfigurationInstance.new( @version, payload, resource_type: @solution[:resource_type], @@ -83,9 +85,10 @@ 'Enabled' => enabled, 'WebhookUrl' => webhook_url, 'WebhookMethod' => webhook_method, }) + payload = @version.update('POST', @uri, data: data) ExportConfigurationInstance.new( @version, payload, resource_type: @solution[:resource_type],