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/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/Suppression/Whitelist.php 1 location
|
@@ 125-133 (lines=9) @@
|
122 |
|
* |
123 |
|
* @return DeleteResponse |
124 |
|
*/ |
125 |
|
public function delete(string $domain, string $address) |
126 |
|
{ |
127 |
|
Assert::stringNotEmpty($domain); |
128 |
|
Assert::stringNotEmpty($address); |
129 |
|
|
130 |
|
$response = $this->httpDelete(sprintf('/v3/%s/whitelists/%s', $domain, $address)); |
131 |
|
|
132 |
|
return $this->hydrateResponse($response, DeleteResponse::class); |
133 |
|
} |
134 |
|
|
135 |
|
/** |
136 |
|
* @param string $domain Domain to delete all whitelists 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
|
@@ 108-116 (lines=9) @@
|
105 |
|
* |
106 |
|
* @return DeleteResponse|ResponseInterface |
107 |
|
*/ |
108 |
|
public function delete(string $domain, string $tag) |
109 |
|
{ |
110 |
|
Assert::stringNotEmpty($domain); |
111 |
|
Assert::stringNotEmpty($tag); |
112 |
|
|
113 |
|
$response = $this->httpDelete(sprintf('/v3/%s/tags/%s', $domain, $tag)); |
114 |
|
|
115 |
|
return $this->hydrateResponse($response, DeleteResponse::class); |
116 |
|
} |
117 |
|
|
118 |
|
/** |
119 |
|
* @return CountryResponse|ResponseInterface |