get
http://api-conserver.onlinesim.io/stubs/handler_api.php?action=getRentServicesAndCountriesGET /stubs/handler_api.php?action=getRentServicesAndCountries
Get list of countries and rent details for virtual number renting
This request returns a list of countries available for rent with rent details.
You might want to use it to check if the numbers of desired country are available for rent and if so, how many.
Security
Parameters
query2
| Name | Type | Description |
|---|---|---|
action* | string | Method name, in this case Enum: getRentServicesAndCountriesDefault:getRentServicesAndCountries |
country | integer | Country ID (according to getCountries) Default: 0 |
Responses
200Successful getRentServicesAndCountries response from the server:
either returns detailed information on available numbers for rent by
country or throws an exception.
Successful getRentServicesAndCountries response from the server:
either returns detailed information on available numbers for rent by
country or throws an exception.
Content-Type
application/jsonSchema
Responseobject
Responseobject
countriesobject
countriesobject
#country#integer
operatorsobject
operatorsobject
0string
servicesobject
servicesobject
fullobject
fullobject
quantinteger
costnumber
Examples
Available numbers by country IDs
{
"countries": {
"0": 0,
"1": 16,
"2": 78,
"3": 56,
"4": 46,
"5": 1045,
"6": 1351,
"7": 187,
"8": 32,
"9": 49,
"10": 34,
"11": 2,
"12": 1057,
"13": 1061,
"14": 1358,
"15": 1039,
"16": 45
},
"operators": {
"0": "any"
},
"services": {
"full": {
"quant": 1864,
"cost": 1.5
}
}
}Code Samples
Generating examples...