lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb in twilio-ruby-7.2.0

- old
+ new

@@ -49,12 +49,13 @@ 'Email' => email, 'PolicySid' => policy_sid, 'StatusCallback' => status_callback, }) + 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) CustomerProfilesInstance.new( @version, payload, ) end @@ -192,21 +193,23 @@ ## # Delete the CustomerProfilesInstance # @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 CustomerProfilesInstance # @return [CustomerProfilesInstance] Fetched CustomerProfilesInstance 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) CustomerProfilesInstance.new( @version, payload, sid: @solution[:sid], ) @@ -231,11 +234,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) CustomerProfilesInstance.new( @version, payload, sid: @solution[:sid], )