lib/twilio-ruby/rest/studio/v1/flow/engagement.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/studio/v1/flow/engagement.rb in twilio-ruby-7.2.0
- old
+ new
@@ -48,12 +48,13 @@
'To' => to,
'From' => from,
'Parameters' => Twilio.serialize_object(parameters),
})
+ 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)
EngagementInstance.new(
@version,
payload,
flow_sid: @solution[:flow_sid],
)
@@ -174,20 +175,22 @@
##
# Delete the EngagementInstance
# @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 EngagementInstance
# @return [EngagementInstance] Fetched EngagementInstance
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)
EngagementInstance.new(
@version,
payload,
flow_sid: @solution[:flow_sid],
sid: @solution[:sid],