get_numbers_status
get_numbers_status($country=0, $operator='any'); - get the number of available numbers.
the input Function accepts parameters:
$country – number country, 0 - Russia, 1 - Ukraine, 2 - Kazakhstan, 3 - China, 4 - Philippines, 5 - Myanmar, 6 - Indonesia, 7 - Malaysia, 10 - Vietnam, 11 - Kyrgyzstan, 12 - USA, 13 - Israel, 14 - Hong Kong, 15 - Poland, 16 - England, 17 - Madagascar, 18 - Congo, 19 - Nigeria, 20 - Macau, 21 - Egypt, 23 - Ireland, 24 - Cambodia, 25 - Laos, 26 - Haiti, 27 - ivory coast, 28 - Gambia, 29 - Serbia, 30 - Yemen, 31 - South Africa, 32 - Romania, 34 - Estonia, 35 - Azerbaijan, 36 - Canada, 37 - Morocco, 38 - Ghana, 39 - Argentina, 40 - Uzbekistan, 41 - Cameroon, (optional, if not specified, the default number will be given according to the setting in the left menu).$operator – mobile operator only for the Russian Federation: megafon, mts, beeline,tele2, any.
After testing, the function returns the result of its work to the script :
string – string with the service response in json format: {"vk_0":"0","ig_0":"3","ok_0":"1","vi_0":"3","other_0":"2"}.
Where before the dash - the name of the service, after the designation whether to enable forwarding. 0 - do not enable. 1 - enable.
Possible error:
BAD_KEY - invalid API key
ERROR_SQL - SQL server error