lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb in twilio-ruby-7.2.0
- old
+ new
@@ -60,12 +60,13 @@
'IsoCountry' => iso_country,
'EndUserType' => end_user_type,
'NumberType' => number_type,
})
+ 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)
BundleInstance.new(
@version,
payload,
)
end
@@ -252,21 +253,23 @@
##
# Delete the BundleInstance
# @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 BundleInstance
# @return [BundleInstance] Fetched BundleInstance
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)
BundleInstance.new(
@version,
payload,
sid: @solution[:sid],
)
@@ -291,11 +294,12 @@
'StatusCallback' => status_callback,
'FriendlyName' => friendly_name,
'Email' => email,
})
+ 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)
BundleInstance.new(
@version,
payload,
sid: @solution[:sid],
)