get getNumber
http://api-conserver.onlinesim.io/stubs/handler_api.php?action=getNumberThis request allows you to order a phone number of a specific country to receive SMS from a selected service.
This is the main service provided by Onlinesim: you can use virtual numbers to receive verification codes or any other information contained in SMS messages.
IMPORTANT NOTE! &br; Please note, that number is issued for 15 minutes (time period depends on the country and service and can differ) and after the operation is closed this number will not be available.
Security
Parameters
actionRequired
Method name, in this case `getNumber`
In:
querySchema:
- stringExample:
"getNumber"Enum:getNumber
serviceRequired
Service slug (short service name, required upon ordering a number, see getNumbersStatus request)
In:
querySchema:
- stringExample:
"3223"
phoneExceptionArray for mask exception (including the country code) &br; For example: with value [911,912123] won't issue numbers of India, that start with 911* and 912123*
In:
queryExample:
908Schema:
- mixedExample:
0One Of:- integerExample:
0 - arrayExample:
[]Items:
Responses
200
Successful `getNumber` response from the server: either returns an operation ID and issued number for SMS receiving or throws an exception.
Content Type:
text/html
- Schema
- Examples
- string
ACCESS_NUMBER:OPERATION_ID:ISSUED_NUMBERExample:"ACCESS_NUMBER:10000:46050608210"