- Update CRM Client
This commit is contained in:
parent
69256faaeb
commit
d6b85e435d
1 changed files with 6 additions and 2 deletions
|
|
@ -104,8 +104,12 @@ class ApiV1
|
|||
return $this->callAPI('POST', '/single-optin', ['email' => $email]);
|
||||
}
|
||||
|
||||
public function ArcadiaOutgoingMail($crm_id, $fields, $type){
|
||||
return $this->callAPI('POST', '/arcadia/outgoing-mail', ['crm_id' => $crm_id, 'fields' => json_encode($fields), 'type' => $type]);
|
||||
public function ArcadiaOutgoingMail($crm_id, $fields, $type, $shipping = false){
|
||||
if ($shipping !== false && $type === 'default') {
|
||||
return $this->callAPI('POST', '/arcadia/outgoing-mail', ['crm_id' => $crm_id, 'fields' => json_encode($fields), 'type' => $type, 'shipping' => json_encode($shipping)]);
|
||||
}else{
|
||||
return $this->callAPI('POST', '/arcadia/outgoing-mail', ['crm_id' => $crm_id, 'fields' => json_encode($fields), 'type' => $type]);
|
||||
}
|
||||
}
|
||||
|
||||
private function callAPI($method, $url, $data = false){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue