1 | <?php |
||
17 | class SubmailGateway extends Gateway |
||
18 | { |
||
19 | |||
20 | use HasHttpRequest; |
||
21 | |||
22 | const ENDPOINT_TEMPLATE = 'https://api.mysubmail.com/message/%s.%s'; |
||
23 | const ENDPOINT_FORMAT = 'json'; |
||
24 | |||
25 | /** |
||
26 | * Send a short message. |
||
27 | * |
||
28 | * @param string|int $to |
||
29 | * @param string $message |
||
30 | * @param array $data |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function send($to, $message, array $data = []) |
||
45 | |||
46 | /** |
||
47 | * Build endpoint url. |
||
48 | * |
||
49 | * @param string $function |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | protected function buildEndpoint($function) |
||
57 | } |