lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb in twilio-ruby-7.2.0
- old
+ new
@@ -46,12 +46,13 @@
'FriendlyName' => friendly_name,
'Type' => type,
'Attributes' => Twilio.serialize_object(attributes),
})
+ 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)
SupportingDocumentInstance.new(
@version,
payload,
)
end
@@ -168,21 +169,23 @@
##
# Delete the SupportingDocumentInstance
# @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 SupportingDocumentInstance
# @return [SupportingDocumentInstance] Fetched SupportingDocumentInstance
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)
SupportingDocumentInstance.new(
@version,
payload,
sid: @solution[:sid],
)
@@ -201,11 +204,12 @@
data = Twilio::Values.of({
'FriendlyName' => friendly_name,
'Attributes' => Twilio.serialize_object(attributes),
})
+ 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)
SupportingDocumentInstance.new(
@version,
payload,
sid: @solution[:sid],
)