| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 62 | 1 | public function addToList($contactListId, $contact) |
|
| 63 | { |
||
| 64 | $body = [ |
||
| 65 | 'ContactsLists' => [ |
||
| 66 | [ |
||
| 67 | 1 | 'ListID' => $contactListId, |
|
| 68 | 'Action' => "addforce" |
||
| 69 | 1 | ] |
|
| 70 | 1 | ] |
|
| 71 | 1 | ]; |
|
| 72 | 1 | $this->client->post(Resources::$ContactManagecontactslists, ['id' => $contact, 'body' => $body]); |
|
| 73 | 1 | } |
|
| 74 | } |
||
| 75 |