1 | <?php |
||
9 | class SmscRuApi |
||
10 | { |
||
11 | const FORMAT_JSON = 3; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $apiUrl = 'https://smsc.ru/sys/send.php'; |
||
15 | |||
16 | /** @var HttpClient */ |
||
17 | protected $httpClient; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $login; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $secret; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $sender; |
||
27 | |||
28 | 3 | public function __construct($login, $secret, $sender) |
|
39 | |||
40 | /** |
||
41 | * @param array $params |
||
42 | * |
||
43 | * @return array |
||
44 | * |
||
45 | * @throws CouldNotSendNotification |
||
46 | */ |
||
47 | 1 | public function send($params) |
|
75 | } |
||
76 |