Services for processing SMS

Table of contents


What are they used for

This action is used to work with SMS services, allows you to get a number from the selected service and use it in your work.

How to add an action to a project?

Via the context menu Add actionDataSMS services

Or use smart search .

What is it used for?

Receive an SMS message for registration on sites that require SMS confirmation for verification.

How to work with an action?

First, you need to connect the API key of one of the SMS services in the program settings

The action has the following basic settings:

SMS service

Choosing an SMS service for work. Service settings are described in the SMS services article.

Choose an action

Get number

Service

Site\application for which you need to get a number.

The valid values should be clarified in the documentation of the selected activation service.

Operator (country)

This field usually contains the code of the country whose number you want to obtain.

Country codes differ from service to service, the values should be clarified in the documentation of the selected activation service.

Redirect

Do you need to execute a redirect?

Save activation ID to variable

The activation ID will be saved to the variable specified here. This ID will be needed in the future when the project is expecting to receive SMS.

Change status

Service notification about number status change.

Activation ID

Here you need to specify the activation ID that was received at the Get number step

Status

  • SMS has been sent - SMS has been sent to the specified number.

  • Repeated code request - for cases when for some reason it was necessary to send SMS again.

  • Cancel request - when the need for a number has passed and, often, services can return the funds used on the account.

  • This number has already been used - it is necessary to notify the service that the number is not suitable because it is busy.

  • Completion - notifies the service about the successful use of the number.

Redirection

Redirection number


Get status

Gets the state of the number. If waiting for SMS, the program will try to receive it for 3 minutes. If no SMS has been received during this time, the value "Wait" will be added to the resulting variable, and the "Get status" operation will have to be repeated again. Some services have very long SMS response times (about 15 minutes).

Activation ID

Here you need to specify the activation ID that was received at the Get number step


More options

Services can accept additional parameters that are not provided by the action settings.

Recording format: parameter=value

Several parameters can be passed at once. They must be separated from each other by the & (ampersand) symbol: parameter1=value1&параметр2=parameter2&parameterN=valueN.


Put to variable

We select a variable to which the result of the work will be returned.


How it works?

The algorithm for working with each service is something like this:

  1. Order a number and get it.

  2. Send an SMS message to the received number.

  3. Notify the service that the message has been sent.

  4. Wait for message to be received.

  5. End the session.


Approximate view of the template

An approximate scheme of working with an SMS service in a template for ZennoPoster is presented below:

 


Useful links: