Sha256: 3f04f391e2a0918f5afda18a70806e6f142ada81cf549532486f68af80af9764
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true module Adobe module Campaign class Profile < Adobe::Campaign::Base def self.endpoint 'profileAndServicesExt/profile' end def self.by_email(search_text) search_text = ERB::Util.url_encode(search_text) get_request("#{endpoint}/byEmail?email=#{search_text}") end # Example Create Payload # { # "birthDate": '', # "email": 'a.test@cru.org', # "emailFormat": 'unknown', # "fax": '', # "firstName": 'A Test', # "gender": 'male', # "lastName": 'Profile', # "location": { # "address1": '123 North St', # "address2": '', # "address3": '', # "address4": '', # "city": 'Orlando', # "countryCode": 'US', # "stateCode": 'FL', # "zipCode": '32714' # }, # "middleName": '', # "mobilePhone": '', # "phone": '', # "salutation": 'Mr' # } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adobe-campaign-0.4.4 | lib/adobe/campaign/profile.rb |