Sha256: 86287fb59a29b8a86df1f4995735df9ecda4dbe8a02772e631928bedce6f990e

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true
module Adobe
  module Campaign
    class Service < Adobe::Campaign::Base
      def self.endpoint
        'profileAndServices/service'
      end

      def self.post_subscription(service_subs_url, person_pkey)
        payload = {
          'subscriber' => {
            'PKey' => person_pkey
          }
        }
        post_request(service_subs_url, payload)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adobe-campaign-0.2.1 lib/adobe/campaign/service.rb
adobe-campaign-0.1.1 lib/adobe/campaign/service.rb
adobe-campaign-0.1.0.1 lib/adobe/campaign/service.rb