lib/twilio-ruby/rest/messaging/v1/external_campaign.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/messaging/v1/external_campaign.rb in twilio-ruby-7.2.0
- old
+ new
@@ -43,11 +43,12 @@
data = Twilio::Values.of({
'CampaignId' => campaign_id,
'MessagingServiceSid' => messaging_service_sid,
})
+ 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)
ExternalCampaignInstance.new(
@version,
payload,
)
end