get_numbers_status
get_numbers_status($country=0); - 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, 8 - Kenya, 9 - Tanzania, 10 - Vietnam, 11 - Kyrgyzstan, 12 - USA, 13 - Israel, 14 - Hong Kong, 15 - Poland,16 - great Britain, 17 - Madagascar, 18 - Congo, 19 - Nigeria, 20 - Macau (optional, by default, as specified in the settings).
You can also use the full name of the country:
argentina
azerbaijan
brazil
cambodia
canada
chad
china
colombia
egypt
england
france
gambia
ghana
haiti
hongkong
india
indonesia
ireland
ivorycoast
kazakhstan
kyrgyzstan
laos
macao
madagascar
malaysia
morocco
myanmar
nigeria
panama
philippines
romania
russia
serbia
southafrica
thailand
usa
uzbekistan
vietnam
yemen
After testing, the function returns the result of its work to the script :
string – a string with the service's response in json format: {"at_0":"330","fb_0":"330","gm_0":"323","go_0":"323","ig_0":"326","mb_0":"330","mm_0":"330","ok_0":"330","or_0":"315","ot_0":"315","qw_0":"327","tg_0":"329","tw_0":"330","vi_0":"330","vk_0":"292","vr_0":"330","wa_0":"330","wb_0":"328","we_0":"330","ya_0":"203","ym_0":"13"}.
Where to the dash - the name of the service, followed by whether to enable forwarding. 0 - do not enable. 1 - enable.
Possible error:
BAD_KEY - invalid API key
ERROR_SQL - SQL server error