CdhHelper

CdhHelper

CDH Helper class.

Constructor

new CdhHelper()

Source:
Requires:
  • module:axios
  • module:string-extensions

Requires

  • module:axios
  • module:string-extensions

Members

getRawCdhConfiguration

Source:

getRawUserProfile

Source:

getVisitorProfile

Source:

Fetches a specified Visitor Profile from the Visitor Lookup API. Also adds the '_id' attribute and the '*_pretty' attribute groups.

Example
let customerProfile

describe('VISITOR LOOKUP - should get the profile', function () {
  it('the customer should have a profile', async function () {
    const profile = await CdhHelper.getVisitorProfileFromLookup(cdhAccount, cdhProfile, customerId, customerIdAttributeId)

    // share with other tests
    customerProfile = profile
    chai.expect(profile).to.be.an('object')
    reporterHelper.logMessage(JSON.stringify(profile, null, 2))
})

sendCollectApiRequest

Source: