|
@@ 470-475 (lines=6) @@
|
| 467 |
|
LPTrackerRequest::sendRequest($url, [], 'DELETE', $this->token, $this->address); |
| 468 |
|
$response = $field->toArray(); |
| 469 |
|
$response['value'] = null; |
| 470 |
|
} else { |
| 471 |
|
$data = [ |
| 472 |
|
'value' => $field->getValue(), |
| 473 |
|
]; |
| 474 |
|
$response = LPTrackerRequest::sendRequest($url, $data, 'PUT', $this->token, $this->address); |
| 475 |
|
} |
| 476 |
|
return new ContactField($response); |
| 477 |
|
} |
| 478 |
|
|
|
@@ 905-911 (lines=7) @@
|
| 902 |
|
LPTrackerRequest::sendRequest($url, $data, 'DELETE', $this->token, $this->address); |
| 903 |
|
$response = $custom->toArray(); |
| 904 |
|
$response['value'] = null; |
| 905 |
|
} else { |
| 906 |
|
$data = [ |
| 907 |
|
'value' => $custom->getValue(), |
| 908 |
|
'options' => $options, |
| 909 |
|
]; |
| 910 |
|
$response = LPTrackerRequest::sendRequest($url, $data, 'PUT', $this->token, $this->address); |
| 911 |
|
} |
| 912 |
|
return new Custom($response, $custom->getLeadId()); |
| 913 |
|
} |
| 914 |
|
|