lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-7.2.0
- old
+ new
@@ -40,12 +40,13 @@
data = Twilio::Values.of({
'FriendlyName' => friendly_name,
})
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
- payload = @version.create('POST', @uri, data: data)
+ payload = @version.create('POST', @uri, data: data, headers: headers)
AccountInstance.new(
@version,
payload,
)
end
@@ -198,12 +199,13 @@
##
# Fetch the AccountInstance
# @return [AccountInstance] Fetched AccountInstance
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)
AccountInstance.new(
@version,
payload,
sid: @solution[:sid],
)
@@ -222,11 +224,12 @@
data = Twilio::Values.of({
'FriendlyName' => friendly_name,
'Status' => status,
})
+ 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)
AccountInstance.new(
@version,
payload,
sid: @solution[:sid],
)