settings/countries/print
Retrieves the list of all countries defined in the platform with code and title, returning an Excel, JSON or XML file.
URL
(GET) /api/settings/countries/print
PARAMETERS
The URL parameters are:
format | The report format, any of:
| Optional, string |
RESULTS
The method returns a file “countries” in the following format:
JSON
The file content is a JSON array. See example below:
[
{
"v": "AFG",
"t": "Afghanistan"
},
{
"v": "ALA",
"t": "Åland Islands"
},
{
"v": "ALB",
"t": "Albania"
},
...
]
XML
<?xml version="1.0" encoding="utf-8"?>
<Rows>
<Row>
<v>AFG</v>
<t>Afghanistan</t>
</Row>
<Row>
<v>ALA</v>
<t>Åland Islands</t>
</Row>
<Row>
<v>ALB</v>
<t>Albania</t>
</Row>
...
</Rows>
EXCEL
The report is an .xlsx file.
Copyright Wordbee - Buzzin' Outside the Box since 2008