|
@@ 136-143 (lines=8) @@
|
| 133 |
|
return $response; |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
public function delete(string $email, string $listName = '') |
| 137 |
|
{ |
| 138 |
|
$list = $this->lists->findByName($listName); |
| 139 |
|
|
| 140 |
|
$response = $this->mailChimp->delete("lists/{$list->getId()}/members/{$this->getSubscriberHash($email)}"); |
| 141 |
|
|
| 142 |
|
return $response; |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
public function deletePermanently(string $email, string $listName = '') |
| 146 |
|
{ |
|
@@ 145-152 (lines=8) @@
|
| 142 |
|
return $response; |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
public function deletePermanently(string $email, string $listName = '') |
| 146 |
|
{ |
| 147 |
|
$list = $this->lists->findByName($listName); |
| 148 |
|
|
| 149 |
|
$response = $this->mailChimp->post("lists/{$list->getId()}/members/{$this->getSubscriberHash($email)}/actions/delete-permanent"); |
| 150 |
|
|
| 151 |
|
return $response; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
public function getTags(string $email, string $listName = '') |
| 155 |
|
{ |