getProfile

The getProfile method enables you to retrieve the profile and temporal information about the visitor visiting the touchpoint.

function callGetProfile(commandsToExecute, callback) {

        var ssId = document.getElementById('gp_sessionId').value;

        InteractAPI.getProfile(ssId, callback);

}
  • session ID-a string identifying the session ID.
  • callback - If the method was successful, the callback function calls onSuccess. If the method failed, the callback function calls onError.

Return value

The runtime server responds to getProfile with a Response object with the following attributes populated:

  • AdvisoryMessages
  • ApiVersion
  • OfferList
  • ProfileRecord
  • SessionID
  • StatusCode