Sms
Assembly: ZennoLab.CommandCenter
Full name: ZennoLab.CommandCenter.ZennoPoster.Sms
Represents a set of methods to access SMS service API.
Methods
GetNumber
Method
Get number from service and return number and ID of operation.
Parameters
| Параметр | Описание |
|---|---|
serviceDll | Name of service dll. |
number | Result number. |
service | Type of service (for example ya - Yandex) . |
oper | Number operator or number country. |
forward | Use forward. |
param | Additional query parameters. |
Returns: Operation ID.
Example
string number;
var id = ZennoPoster.Sms.GetNumber("SmsReg.dll", out number, "other", "ru");Example2
$number = "";
$rowCount = ZennoLab\CommandCenter\ZennoPoster::Sms::GetNumber("SmsReg.dll", $number, "other", "ru");SetStatus
Method
Set status for operation by ID.
Parameters
| Параметр | Описание |
|---|---|
serviceDll | Name of service dll. |
id | ID operation. |
status | Status. |
forwardNum | Number for forwading. |
param | Additional query parameters. |
Returns: Status.
Example
var id = ZennoPoster.Sms.SetStatus("SmsReg.dll", id, InterfacesLibrary.SmsService.Enums.SmsServiceStatus.Ready);Example2
$status = ZennoLab\CommandCenter\ZennoPoster::Sms::SetStatus("SmsReg.dll", $id, InterfacesLibrary\SmsService\Enums\SmsServiceStatus::Ready);GetStatus
Method
Get code or status message.
Parameters
| Параметр | Описание |
|---|---|
serviceDll | Name of service dll. |
id | ID operation. |
param | Additional query parameters. |
timeout | Wait code timeout in minutes. |
Returns: The code or status message.
Example
var code = ZennoPoster.Sms.GetStatus("SmsReg.dll", id);Example2
$code = ZennoLab\CommandCenter\ZennoPoster::Sms::GetStatus("SmsReg.dll", $id);