Class: Adobe::Campaign::Service

Inherits:
Base
  • Object
show all
Defined in:
lib/adobe/campaign/service.rb

Class Method Summary collapse

Methods inherited from Base

access_token, all, auth_headers, find, get_request, load_access_token, post, post_request

Class Method Details

.endpointObject



6
7
8
# File 'lib/adobe/campaign/service.rb', line 6

def self.endpoint
  'profileAndServices/service'
end

.post_subscription(service_subs_url, person_pkey) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/adobe/campaign/service.rb', line 10

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