| 1 | <?php |
||
| 9 | class GoSmsApi |
||
| 10 | { |
||
| 11 | const FORMAT_JSON = 3; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $apiUrl = 'http://api.gosms.com.my/eapi/sms.aspx'; |
||
| 15 | |||
| 16 | /** @var HttpClient */ |
||
| 17 | protected $httpClient; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | protected $company; |
||
| 21 | |||
| 22 | /** @var string */ |
||
| 23 | protected $username; |
||
| 24 | |||
| 25 | /** @var string */ |
||
| 26 | protected $password; |
||
| 27 | |||
| 28 | /** @var string */ |
||
| 29 | protected $sender; |
||
| 30 | |||
| 31 | public function __construct($company, $username, $password, $sender) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param array $params |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | * |
||
| 49 | * @throws CouldNotSendNotification |
||
| 50 | */ |
||
| 51 | public function send($params) |
||
| 75 | } |
||
| 76 |