/** * Add a new contact to an account * @param string $accessToken - Valid access token * @param Contact $contact - Contact to add * @param boolean $actionByVisitor - is the action being taken by the visitor * @return Contact */ public function addContact($accessToken, Contact $contact, $actionByVisitor = false) { $params = array(); if ($actionByVisitor == true) { $params['action_by'] = "ACTION_BY_VISITOR"; } return $this->contactService->addContact($accessToken, $contact, $params); }
/** * Add a new contact to an account * @param string $accessToken - Valid access token * @param Contact $contact - Contact to add * @param boolean $actionByVisitor - is the action being taken by the visitor * @return Contact */ public function addContact($accessToken, Contact $contact, $actionByVisitor = false) { return $this->contactService->addContact($accessToken, $contact, $actionByVisitor); }