Sha256: bf1c0d50a4ee46702ab0c22b48ebfa01173bbaf9f38254d089201617d7e51fec

Contents?: true

Size: 296 Bytes

Versions: 10

Compression:

Stored size: 296 Bytes

Contents

module Mrkt
  module CrudCampaigns
    def request_campaign(id, lead_ids, tokens = {})
      post_json("/rest/v1/campaigns/#{id}/trigger.json") do
        {
          input: {
            leads: map_lead_ids(lead_ids),
            tokens: tokens
          }
        }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mrkt-1.2.2 lib/mrkt/concerns/crud_campaigns.rb
mrkt-1.2.1 lib/mrkt/concerns/crud_campaigns.rb
mrkt-1.2.0 lib/mrkt/concerns/crud_campaigns.rb
mrkt-1.1.1 lib/mrkt/concerns/crud_campaigns.rb
mrkt-1.1.0 lib/mrkt/concerns/crud_campaigns.rb
mrkt-1.0.1 lib/mrkt/concerns/crud_campaigns.rb
mrkt-1.0.0 lib/mrkt/concerns/crud_campaigns.rb
mrkt-0.11.1 lib/mrkt/concerns/crud_campaigns.rb
mrkt-0.11.0 lib/mrkt/concerns/crud_campaigns.rb
mrkt-0.10.0 lib/mrkt/concerns/crud_campaigns.rb