Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 577 Bytes

File metadata and controls

32 lines (25 loc) · 577 Bytes

epost-php

Usage

SMS

use EPost\SMS;

$sms = new SMS();
//$sms->setCountryCode("852");  you can set country code. if not set, default 852
$sms->setPhone("27717387"); //no need add 852
$sms->setContent("Hello");

$key="..."; //get from hostlink
$epost = new EPost($key);
print_r($epost->sendSMS($sms));


### get SMS report
```php
$sms = new SMS();
$from="2021-05-10";
$to="2021-05-15";
$report = $epost->getSMSReport($from,$to);

get quota and expiry date

$epost = new EPost($key);
echo $epost->getSMSQuota();
echo $epost->getSMSExpiryDate();