Sha256: cbd195a608bb5c1b97ff355a31535181fff14da15ef2067d6a073fc1bc5eedeb

Contents?: true

Size: 420 Bytes

Versions: 8

Compression:

Stored size: 420 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

8 entries across 8 versions & 1 rubygems

Version Path
adobe-campaign-0.4.4 lib/adobe/campaign/service.rb
adobe-campaign-0.4.3 lib/adobe/campaign/service.rb
adobe-campaign-0.4.2 lib/adobe/campaign/service.rb
adobe-campaign-0.4.1 lib/adobe/campaign/service.rb
adobe-campaign-0.4.0 lib/adobe/campaign/service.rb
adobe-campaign-0.3.2 lib/adobe/campaign/service.rb
adobe-campaign-0.3.1 lib/adobe/campaign/service.rb
adobe-campaign-0.3.0 lib/adobe/campaign/service.rb