Internal
You should not call this constructor directly. Instead, use the Mozaic main entry point to get access to the SDK classes.
Get the underlying API for direct calls to the Mozaic API.
Protected
executeGet a contact by external ID. If you have more than one contact with the same external ID, this will return the first contact that matches the external ID. Use getContacts to return all contacts with the same external ID.
The external ID of the contact to retrieve. This ID represents the user in an external system.
A contact that matches the external ID.
Searches for a contact using various search parameters. You must supply either a term or an external ID.
The number of items to return per page. Must be between 1 and 100 inclusive.
The page number to return. Must be greater than 0.
Optional
term: stringThe search term to use. This will search the known name (the name you gave the contact), first name, last name, external ID, and email address of the contact. This parameter is limited to 50 chars max.
Optional
externalId: stringThe external ID of the contact to retrieve. This ID represents the user in an external system.
Optional
sinceUTC: stringThe date and time to use as a filter. This will return all contacts that were created or updated after this date and time.
Optional
contactStatus: ContactStatusPersona[]An array of contact statuses. Contacts with a status in this array will be returned.
A list of contacts that match the search criteria.
Protected
getProtected
throwProtected
throwA helper function that will either return the variable's value or throw an exception if the value is null or undefined. Unit testing is simplified by avoiding ??
The name of the variable being checked
The value of the variable being checked
The value of the variable if it is available, otherwise an exception is thrown.
All classes in the resource folder should implement this interface so that they can be instantiated in the main barrel.