1 | <?php |
||
12 | class ClickatellHandler extends SMSHandler |
||
13 | { |
||
14 | /** |
||
15 | * API version 1 |
||
16 | */ |
||
17 | const API_V1 = '2010-04-01'; |
||
18 | |||
19 | /** |
||
20 | * @param string $secret Twilio API Secret Token |
||
21 | * @param string $fromNumber The phone number that will be shown as the sender ID |
||
22 | * @param string $toNumber The phone number to which the message will be sent |
||
23 | * @param int $level The minimum logging level at which this handler will be triggered |
||
24 | * @param bool $bubble Whether the messages that are handled can bubble up the stack or not |
||
25 | * @param bool $useSSL Whether to connect via SSL. |
||
26 | * @param string $host The Twilio server hostname. |
||
27 | * @param string $version The Twilio API version (default ClickatellHandler::API_V1) |
||
28 | * @param int $limit The character limit |
||
29 | */ |
||
30 | 18 | public function __construct($secret, $fromNumber, $toNumber, $level = Logger::CRITICAL, $bubble = true, $useSSL = true, $host = 'platform.clickatell.com', $version = self::API_V1, $limit = 160) |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | * |
||
41 | * @param array $record |
||
42 | * @return string |
||
43 | */ |
||
44 | 12 | protected function buildContent($record) |
|
59 | |||
60 | /** |
||
61 | * Builds the URL for the API call |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | 12 | protected function buildRequestUrl() |
|
69 | } |
||
70 |