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

ПараметрОписание
serviceDllName of service dll.
numberResult number.
serviceType of service (for example ya - Yandex) .
operNumber operator or number country.
forwardUse forward.
paramAdditional 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

ПараметрОписание
serviceDllName of service dll.
idID operation.
statusStatus.
forwardNumNumber for forwading.
paramAdditional 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

ПараметрОписание
serviceDllName of service dll.
idID operation.
paramAdditional query parameters.
timeoutWait 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);