Sha256: 415a5fe6c273652db18913e9394123c7ba7b82657822b7722c3e79fff28d56d9

Contents?: true

Size: 971 Bytes

Versions: 7

Compression:

Stored size: 971 Bytes

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)
        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

7 entries across 7 versions & 1 rubygems

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