lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb in twilio-ruby-7.2.0
- old
+ new
@@ -58,12 +58,13 @@
##
# Fetch the ExportConfigurationInstance
# @return [ExportConfigurationInstance] Fetched ExportConfigurationInstance
def fetch
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
- payload = @version.fetch('GET', @uri)
+ payload = @version.fetch('GET', @uri, headers: headers)
ExportConfigurationInstance.new(
@version,
payload,
resource_type: @solution[:resource_type],
)
@@ -85,11 +86,12 @@
'Enabled' => enabled,
'WebhookUrl' => webhook_url,
'WebhookMethod' => webhook_method,
})
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
- payload = @version.update('POST', @uri, data: data)
+ payload = @version.update('POST', @uri, data: data, headers: headers)
ExportConfigurationInstance.new(
@version,
payload,
resource_type: @solution[:resource_type],
)