Name | Type | Description |
---|---|---|
status | Boolean | Determines if result has any valid airports. False means no airports will be in the response. |
statusCode | Integer | This will be a number corresponding to the response code type. |
countries | String | The countries variable can be either an array of country objects, or a string of options for a select field. Your 'is_select_options' parameter will determine what will be in this variable. |
Example response
The response will be in typical json fashion.
{ "status": true, "statusCode": 200, "countries": [ { "iso": "AF", "name": "Afghanistan" }, { "iso": "AX", "name": "Aland Islands" }, { "iso": "AL", "name": "Albania" }, { "iso": "DZ", "name": "Algeria" }, ... { "iso": "ZW", "name": "Zimbabwe" } ] }
If you set 'is_select_options' to true then your countries variable will be a string of options similar to this.
{ "status": true, "statusCode": 200, "countries": "<option value=\"AF\">Afghanistan</option> <option value=\"AX\">Aland Islands</option> <option value=\"AL\">Albania</option> <option value=\"DZ\">Algeria</option> ... <option value=\"ZW\">Zimbabwe</option>" }