lib/twilio-ruby/rest/messaging/v1/external_campaign.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/messaging/v1/external_campaign.rb in twilio-ruby-6.11.0

- old
+ new

@@ -16,10 +16,11 @@ module Twilio module REST class Messaging < MessagingBase class V1 < Version class ExternalCampaignList < ListResource + ## # Initialize the ExternalCampaignList # @param [Version] version Version that contains the resource # @return [ExternalCampaignList] ExternalCampaignList def initialize(version) @@ -42,9 +43,10 @@ data = Twilio::Values.of({ 'CampaignId' => campaign_id, 'MessagingServiceSid' => messaging_service_sid, }) + payload = @version.create('POST', @uri, data: data) ExternalCampaignInstance.new( @version, payload, )