lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb in twilio-ruby-7.2.0
- old
+ new
@@ -184,12 +184,13 @@
'AmdStatusCallbackMethod' => amd_status_callback_method,
'Trim' => trim,
'CallToken' => call_token,
})
+ 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)
ParticipantInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
conference_sid: @solution[:conference_sid],
@@ -328,21 +329,23 @@
##
# Delete the ParticipantInstance
# @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 ParticipantInstance
# @return [ParticipantInstance] Fetched ParticipantInstance
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)
ParticipantInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
conference_sid: @solution[:conference_sid],
@@ -393,11 +396,12 @@
'EndConferenceOnExit' => end_conference_on_exit,
'Coaching' => coaching,
'CallSidToCoach' => call_sid_to_coach,
})
+ 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)
ParticipantInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
conference_sid: @solution[:conference_sid],