settings/languages/print

Retrieves the list of all languages defined in the platform with code and title, returning an Excel, JSON or XML file.

URL

(GET) /api/settings/languages/print

PARAMETERS

The URL parameters are:

format

The report format, any of:

  • Excel (default)

  • Xml

  • Json

Optional, string

RESULTS

The method returns a file “languages” in the following format:

JSON

The file content is a JSON array. See example below:

[ { "v": "*", "t": "All languages" }, { "v": "ab", "t": "Abkhazian" }, { "v": "ace", "t": "Acehnese" }, { "v": "ach", "t": "Acholi" }, ... ]

XML

<?xml version="1.0" encoding="utf-8"?> <Rows> <Row> <v>*</v> <t>All languages</t> </Row> <Row> <v>ab</v> <t>Abkhazian</t> </Row> <Row> <v>ace</v> <t>Acehnese</t> </Row> <Row> <v>ach</v> <t>Acholi</t> </Row> ... </Rows>

EXCEL

The report is an .xlsx file.

 

Copyright Wordbee - Buzzin' Outside the Box since 2008