Get rent services and countries

https://sms-online.pro/stubs/handler_api.php?action=getRentServicesAndCountries&api_key=$api_key&rent_time=$rent_time&country=$country

Parameters:

Parameters Type Required Description
$api_key string
☑️
API key
$rent_time integer
☑️
Rent time in hours (2, 4, 12, 24, 48, 72, …)
$country integer
☑️
country code (see table)

Response:

{
  "countries": {
    "0": 1,
    "1": 2,
    "2": 6
  },
  "operators": {
    "0": "tmobile",
    "1": "lycamobile"
  },
  "services": {
    "fb": {
      "cost": 0.18,
      "retail_cost": "0.27",
      "quant": {
        "current": 2535,
        "total": 2535
      },
      "search_name": "facebookфейсбукatqcАИFBfacebookmetaмета"
    },
    "wa": {
      "cost": 2.4224,
      "retail_cost": "3.6336",
      "quant": {
        "current": 17,
        "total": 17
      },
      "search_name": "WhatsappВАWAвотсапватсапвотсапватсапwhatsupwotsupdjncfgdfncfg"
    }
  },
  "realHours": 4,
  "currency": 840
}

Error Response:

{
  "status": "error",
  "message": "BAD_KEY"
}

Possible errors:

Mistake Description
BAD_KEY Invalid API key
SERVER_ERROR Server error