lib/twilio-ruby/rest/api/v2010/account/application.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/api/v2010/account/application.rb in twilio-ruby-7.2.0
- old
+ new
@@ -87,12 +87,13 @@
'MessageStatusCallback' => message_status_callback,
'FriendlyName' => friendly_name,
'PublicApplicationConnectEnabled' => public_application_connect_enabled,
})
+ 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)
ApplicationInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
)
@@ -217,21 +218,23 @@
##
# Delete the ApplicationInstance
# @return [Boolean] True if delete succeeds, false otherwise
def delete
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
- @version.delete('DELETE', @uri)
+ @version.delete('DELETE', @uri, headers: headers)
end
##
# Fetch the ApplicationInstance
# @return [ApplicationInstance] Fetched ApplicationInstance
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)
ApplicationInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
sid: @solution[:sid],
@@ -293,11 +296,12 @@
'SmsStatusCallback' => sms_status_callback,
'MessageStatusCallback' => message_status_callback,
'PublicApplicationConnectEnabled' => public_application_connect_enabled,
})
+ 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)
ApplicationInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
sid: @solution[:sid],