| 1 | <?php |
||
| 9 | class PanaceaMobileApi |
||
| 10 | { |
||
| 11 | const FORMAT_JSON = 3; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $apiUrl = 'https://api.panaceamobile.com/json/3'; |
||
| 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 | public function __construct($login, $secret, $sender) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $recipient |
||
| 42 | * @param array $params |
||
| 43 | * |
||
| 44 | * @return array |
||
| 45 | * |
||
| 46 | * @throws CouldNotSendNotification |
||
| 47 | */ |
||
| 48 | public function send($recipient, $params) |
||
| 78 | } |
||
| 79 |