Sha256: 41ab299fa1fb6047e36a016a383cf88771588e270f5a2191bee800ce84e40db6

Contents?: true

Size: 341 Bytes

Versions: 5

Compression:

Stored size: 341 Bytes

Contents

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

        json_payload(req, params)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mrkt-0.9.0 lib/mrkt/concerns/crud_campaigns.rb
mrkt-0.8.0 lib/mrkt/concerns/crud_campaigns.rb
mrkt-0.7.0 lib/mrkt/concerns/crud_campaigns.rb
mrkt-0.6.2 lib/mrkt/concerns/crud_campaigns.rb
mrkt-0.6.1 lib/mrkt/concerns/crud_campaigns.rb