get_countries (GET)
This function retrieves registered and active countries in our platform. It takes as input the token and the language (get_languages calls). It returns a string serialized in JSON format with the full name of the country and its ISO code (International Organization for Standardization).
- Endpoint :
preview.ilsbsys.com/apirest_v1/information
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
language | string | 3 | (Mandatory) |
Fields
{
"request" : "get_countries",
"token" : "123456789ABC",
"language" : "eng"
}
Results
[
{
"iso_country": "AD",
"description": "Andorra"
},
{
"iso_country": "AE",
"description": "Emiratos Árabes Unidos"
},
{
"iso_country": "AF",
"description": "Afganistán"
},
{
"iso_country": "AG",
"description": "Antigua y Barbuda"
},
{
"iso_country": "AI",
"description": "Anguilla"
},
{
"iso_country": "AL",
"description": "Albania"
}
]
Common Error Codes
1030
: language not implemented6021
: language is empty6020
: token is empty1005
: supplied token is invalid