1 | <?PHP |
||
26 | class Mailgun |
||
27 | { |
||
28 | /** |
||
29 | * @var RestClient |
||
30 | * |
||
31 | * @depracated Will be removed in 3.0 |
||
32 | */ |
||
33 | protected $restClient; |
||
34 | |||
35 | /** |
||
36 | * @var null|string |
||
37 | */ |
||
38 | protected $apiKey; |
||
39 | |||
40 | /** |
||
41 | * @var HttpMethodsClient |
||
42 | */ |
||
43 | private $httpClient; |
||
44 | |||
45 | /** |
||
46 | * @var Hydrator |
||
47 | */ |
||
48 | private $hydrator; |
||
49 | |||
50 | /** |
||
51 | * @var RequestBuilder |
||
52 | */ |
||
53 | private $requestBuilder; |
||
54 | |||
55 | /** |
||
56 | * @param string|null $apiKey |
||
57 | * @param HttpClient|null $httpClient |
||
58 | * @param string $apiEndpoint |
||
59 | * @param Hydrator|null $hydrator |
||
60 | * @param HttpClientConfigurator|null $clientConfigurator |
||
61 | * @param RequestBuilder|null $requestBuilder |
||
62 | */ |
||
63 | 6 | public function __construct( |
|
94 | |||
95 | /** |
||
96 | * @param HttpClientConfigurator $httpClientConfigurator |
||
97 | * @param Hydrator|null $hydrator |
||
98 | * @param RequestBuilder|null $requestBuilder |
||
99 | * |
||
100 | * @return Mailgun |
||
101 | */ |
||
102 | public static function configure( |
||
111 | |||
112 | /** |
||
113 | * @param string $apiKey |
||
114 | * |
||
115 | * @return Mailgun |
||
116 | */ |
||
117 | public static function create($apiKey) |
||
123 | |||
124 | /** |
||
125 | * This function allows the sending of a fully formed message OR a custom |
||
126 | * MIME string. If sending MIME, the string must be passed in to the 3rd |
||
127 | * position of the function call. |
||
128 | * |
||
129 | * @param string $workingDomain |
||
130 | * @param array $postData |
||
131 | * @param array $postFiles |
||
132 | * |
||
133 | * @throws Exceptions\MissingRequiredMIMEParameters |
||
134 | * |
||
135 | * @return \stdClass |
||
136 | * |
||
137 | * @deprecated Use Mailgun->message() instead. Will be removed in 3.0 |
||
138 | */ |
||
139 | 6 | public function sendMessage($workingDomain, $postData, $postFiles = []) |
|
157 | |||
158 | /** |
||
159 | * This function checks the signature in a POST request to see if it is |
||
160 | * authentic. |
||
161 | * |
||
162 | * Pass an array of parameters. If you pass nothing, $_POST will be |
||
163 | * used instead. |
||
164 | * |
||
165 | * If this function returns FALSE, you must not process the request. |
||
166 | * You should reject the request with status code 403 Forbidden. |
||
167 | * |
||
168 | * @param array|null $postData |
||
169 | * |
||
170 | * @return bool |
||
171 | * |
||
172 | * @deprecated Use Mailgun->webhook() instead. Will be removed in 3.0 |
||
173 | */ |
||
174 | 3 | public function verifyWebhookSignature($postData = null) |
|
191 | |||
192 | /** |
||
193 | * @param string $endpointUrl |
||
194 | * @param array $postData |
||
195 | * @param array $files |
||
196 | * |
||
197 | * @return \stdClass |
||
198 | * |
||
199 | * @deprecated Will be removed in 3.0 |
||
200 | */ |
||
201 | 7 | public function post($endpointUrl, $postData = [], $files = []) |
|
205 | |||
206 | /** |
||
207 | * @param string $endpointUrl |
||
208 | * @param array $queryString |
||
209 | * |
||
210 | * @return \stdClass |
||
211 | * |
||
212 | * @deprecated Will be removed in 3.0 |
||
213 | */ |
||
214 | public function get($endpointUrl, $queryString = []) |
||
218 | |||
219 | /** |
||
220 | * @param string $url |
||
221 | * |
||
222 | * @return \stdClass |
||
223 | * |
||
224 | * @deprecated Will be removed in 3.0 |
||
225 | */ |
||
226 | 2 | public function getAttachment($url) |
|
230 | |||
231 | /** |
||
232 | * @param string $endpointUrl |
||
233 | * |
||
234 | * @return \stdClass |
||
235 | * |
||
236 | * @deprecated Will be removed in 3.0 |
||
237 | */ |
||
238 | public function delete($endpointUrl) |
||
242 | |||
243 | /** |
||
244 | * @param string $endpointUrl |
||
245 | * @param array $putData |
||
246 | * |
||
247 | * @return \stdClass |
||
248 | * |
||
249 | * @deprecated Will be removed in 3.0 |
||
250 | */ |
||
251 | public function put($endpointUrl, $putData) |
||
255 | |||
256 | /** |
||
257 | * @param string $apiVersion |
||
258 | * |
||
259 | * @return Mailgun |
||
260 | * |
||
261 | * @deprecated Will be removed in 3.0 |
||
262 | */ |
||
263 | public function setApiVersion($apiVersion) |
||
269 | |||
270 | /** |
||
271 | * @param bool $sslEnabled |
||
272 | * |
||
273 | * @return Mailgun |
||
274 | * |
||
275 | * @deprecated This will be removed in 3.0. Mailgun does not support non-secure connections to their API. |
||
276 | */ |
||
277 | public function setSslEnabled($sslEnabled) |
||
283 | |||
284 | /** |
||
285 | * @return MessageBuilder |
||
286 | * |
||
287 | * @deprecated Will be removed in 3.0 |
||
288 | */ |
||
289 | 28 | public function MessageBuilder() |
|
293 | |||
294 | /** |
||
295 | * @return OptInHandler |
||
296 | * |
||
297 | * @deprecated Will be removed in 3.0 |
||
298 | */ |
||
299 | 3 | public function OptInHandler() |
|
303 | |||
304 | /** |
||
305 | * @param string $workingDomain |
||
306 | * @param bool $autoSend |
||
307 | * |
||
308 | * @return BatchMessage |
||
309 | * |
||
310 | * @deprecated Will be removed in 3.0 |
||
311 | */ |
||
312 | 15 | public function BatchMessage($workingDomain, $autoSend = true) |
|
316 | |||
317 | /** |
||
318 | * @return Api\Stats |
||
319 | */ |
||
320 | public function stats() |
||
324 | |||
325 | /** |
||
326 | * @return Api\Domain |
||
327 | */ |
||
328 | public function domains() |
||
332 | |||
333 | /** |
||
334 | * @return Api\Tag |
||
335 | */ |
||
336 | public function tags() |
||
340 | |||
341 | /** |
||
342 | * @return Api\Event |
||
343 | */ |
||
344 | public function events() |
||
348 | |||
349 | /** |
||
350 | * @return Api\Routes |
||
351 | */ |
||
352 | public function routes() |
||
356 | |||
357 | /** |
||
358 | * @return Api\Webhook |
||
359 | */ |
||
360 | public function webhooks() |
||
364 | |||
365 | /** |
||
366 | * @return Api\Message |
||
367 | */ |
||
368 | public function messages() |
||
372 | |||
373 | /** |
||
374 | * @return Api\Suppression |
||
375 | */ |
||
376 | public function suppressions() |
||
380 | } |
||
381 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.