src/Api/Suppression/Bounce.php 1 location
|
@@ 92-100 (lines=9) @@
|
| 89 |
|
* |
| 90 |
|
* @return DeleteResponse |
| 91 |
|
*/ |
| 92 |
|
public function delete(string $domain, string $address) |
| 93 |
|
{ |
| 94 |
|
Assert::stringNotEmpty($domain); |
| 95 |
|
Assert::stringNotEmpty($address); |
| 96 |
|
|
| 97 |
|
$response = $this->httpDelete(sprintf('/v3/%s/bounces/%s', $domain, $address)); |
| 98 |
|
|
| 99 |
|
return $this->hydrateResponse($response, DeleteResponse::class); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
/** |
| 103 |
|
* @param string $domain Domain to delete all bounces for |
src/Api/Suppression/Complaint.php 1 location
|
@@ 95-103 (lines=9) @@
|
| 92 |
|
* |
| 93 |
|
* @return DeleteResponse |
| 94 |
|
*/ |
| 95 |
|
public function delete(string $domain, string $address) |
| 96 |
|
{ |
| 97 |
|
Assert::stringNotEmpty($domain); |
| 98 |
|
Assert::stringNotEmpty($address); |
| 99 |
|
|
| 100 |
|
$response = $this->httpDelete(sprintf('/v3/%s/complaints/%s', $domain, $address)); |
| 101 |
|
|
| 102 |
|
return $this->hydrateResponse($response, DeleteResponse::class); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
/** |
| 106 |
|
* @param string $domain Domain to delete all bounces for |
src/Api/Webhook.php 2 locations
|
@@ 79-86 (lines=8) @@
|
| 76 |
|
/** |
| 77 |
|
* @return ShowResponse|ResponseInterface |
| 78 |
|
*/ |
| 79 |
|
public function show(string $domain, string $webhook) |
| 80 |
|
{ |
| 81 |
|
Assert::notEmpty($domain); |
| 82 |
|
Assert::notEmpty($webhook); |
| 83 |
|
$response = $this->httpGet(sprintf('/v3/domains/%s/webhooks/%s', $domain, $webhook)); |
| 84 |
|
|
| 85 |
|
return $this->hydrateResponse($response, ShowResponse::class); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
| 89 |
|
* @return CreateResponse|ResponseInterface |
|
@@ 128-136 (lines=9) @@
|
| 125 |
|
/** |
| 126 |
|
* @return DeleteResponse|ResponseInterface |
| 127 |
|
*/ |
| 128 |
|
public function delete(string $domain, string $id) |
| 129 |
|
{ |
| 130 |
|
Assert::notEmpty($domain); |
| 131 |
|
Assert::notEmpty($id); |
| 132 |
|
|
| 133 |
|
$response = $this->httpDelete(sprintf('/v3/domains/%s/webhooks/%s', $domain, $id)); |
| 134 |
|
|
| 135 |
|
return $this->hydrateResponse($response, DeleteResponse::class); |
| 136 |
|
} |
| 137 |
|
} |
| 138 |
|
|
src/Api/Tag.php 1 location
|
@@ 106-114 (lines=9) @@
|
| 103 |
|
* |
| 104 |
|
* @return DeleteResponse|ResponseInterface |
| 105 |
|
*/ |
| 106 |
|
public function delete(string $domain, string $tag) |
| 107 |
|
{ |
| 108 |
|
Assert::stringNotEmpty($domain); |
| 109 |
|
Assert::stringNotEmpty($tag); |
| 110 |
|
|
| 111 |
|
$response = $this->httpDelete(sprintf('/v3/%s/tags/%s', $domain, $tag)); |
| 112 |
|
|
| 113 |
|
return $this->hydrateResponse($response, DeleteResponse::class); |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
/** |
| 117 |
|
* @return CountryResponse|ResponseInterface |
src/Api/MailingList/Member.php 1 location
|
@@ 239-247 (lines=9) @@
|
| 236 |
|
* |
| 237 |
|
* @throws \Exception |
| 238 |
|
*/ |
| 239 |
|
public function delete(string $list, string $address) |
| 240 |
|
{ |
| 241 |
|
Assert::stringNotEmpty($list); |
| 242 |
|
Assert::stringNotEmpty($address); |
| 243 |
|
|
| 244 |
|
$response = $this->httpDelete(sprintf('/v3/lists/%s/members/%s', $list, $address)); |
| 245 |
|
|
| 246 |
|
return $this->hydrateResponse($response, DeleteResponse::class); |
| 247 |
|
} |
| 248 |
|
} |
| 249 |
|
|
src/Api/MailingList.php 1 location
|
@@ 206-213 (lines=8) @@
|
| 203 |
|
* |
| 204 |
|
* @throws \Exception |
| 205 |
|
*/ |
| 206 |
|
public function cancelValidation(string $address) |
| 207 |
|
{ |
| 208 |
|
Assert::stringNotEmpty($address); |
| 209 |
|
|
| 210 |
|
$response = $this->httpDelete(sprintf('/v3/lists/%s/validate', $address)); |
| 211 |
|
|
| 212 |
|
return $this->hydrateResponse($response, ValidationCancelResponse::class); |
| 213 |
|
} |
| 214 |
|
} |
| 215 |
|
|