Класс позволяет отправлять сообщения на определенный номер в мессенджер MAX через сервис greenAPI
Открытые члены | |
| __construct ($api_url, $id_instance, $api_token_instance) | |
| checkAccount ($phone_number, $cache=true) | |
| sendText ($text, $phone_number) | |
Защищенные данные | |
| $api_url | |
| $id_instance | |
| $api_token_instance | |
| __construct | ( | $api_url, | |
| $id_instance, | |||
| $api_token_instance | |||
| ) |
| checkAccount | ( | $phone_number, | |
$cache = true |
|||
| ) |
Возвращает идентификатор chat_id или false, если пользователь не найден
| string | $phone_number | Номер телефона нормализованный |
| bool | $cache | Если true, то chatId будет возвращен из локального кэша |
| Exception | В случае |
| sendText | ( | $text, | |
| $phone_number | |||
| ) |
Отправляет сообщение в MAX
| $text | |
| $phone_number |
|
protected |
|
protected |
|
protected |