Resolve #3588474 "Standardizing all contacts"

Closes #3588474

This merge request is standardizing all contact create and update calls, to use the according methods in ContactsApiClientHelper. This implies changes in the following methods:

  • method ContactsApiClientHelper::createContact() has the parameters:
    • (required) email: the e-mailaddress of the contact
    • (optional) listIds: an array containing the ids of the lists to subscribe to (default = [])
    • (optional) attributes: attributes like FNAME, LNAME (default = [])
    • (optional) updateEnabled: wether you want to use an insert (FALSE) or upsert (TRUE) to create the contact (default = TRUE)
    • (optional) bubbleExceptions: a boolean to specify if you want the method to bubble up exceptions (default = FALSE)
  • method ContactsApiClientHelper::updateContact() has the parameters:
    • (required) email: the e-mailaddress of the contact
    • (optional) listIds: an array containing the ids of the lists to subscribe to (default = [])
    • (optional) attributes: attributes like FNAME, LNAME (default = [])
    • (optional) bubbleExceptions: a boolean to specify if you want the method to bubble up exceptions (default = FALSE)
Edited by kensae

Merge request reports

Loading