Sender service
In order to send a message like BulkGate\Sms\IMesssage
you need to create a sender, which can be done in two ways:
- Nette framework - if you use Nette framework
- PHP - in other cases
Sending messages
To send the message, use the send() method, which receives messages of the BulkGate\Sms\IMesssage type.
Response to BulkGate\Sms\Messsage
Response to BulkGate\Sms\BulkMesssage
Unicode
To set up Unicode, call the method unicode().
Setting of the Sender
Setting of the sender type is described in the chapter.
Default country
If you enter phone numbers in a national format, the system does not know where to send the messages. Hence, unless the international prefix is explicitly filled in, you can defined the default country for the sender type to which the messages will be routed.
Validation of Numbers
If you need to verify whether a phone number matches the country format, use the method checkPhoneNumbers().
Where $numbers can be:
- phone number in a string
"447971700001" - phone number of the
BulkGate\Sms\Message\PhoneNumbertype - arrays of phone numbers
['447971700001','447971700002','447971700003'] - arrays of phone numbers of the
BulkGate\Sms\Message\PhoneNumbertype
$iso has the same meaning as default country
The output is then BulkGate\Message\Response
The area_found value indicates the validity of the country-specific number format.
Thank you for your feedback.