Skip to content

Latest commit

 

History

History
44 lines (23 loc) · 987 Bytes

README.md

File metadata and controls

44 lines (23 loc) · 987 Bytes

YarCode\EpochtaSMS\Api

PHP class for working with epochtasms.ru API by YarCode Team.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yarcode/epochta-sms "*"

or add

"yarcode/epochta-sms": "*"

to the require section of your composer.json.

Usage

Authorization:

$api = new \YarCode\EpochtaSMS\Api($privateKey, $publicKey, true);

Sending text message:

$api->sendSMS('Sender', 'Text message', '79112223344');

Sending messages to a group of recipients:

$api->sendSMSGroup('Sender', 'Text message', ['79005552525', '78885552233'], '2017-01-19 00:00:00', 0);

Balance:

$api->getUserBalance();

Licence

MIT

Links