Languages

The Waytobi languages.

Language Object

The object has the following properties:

Name Type Read Only Mandatory Max Len. Notes
id integer yes no   Internal id
name string yes no   The name of the language
code string yes no   The language code

JSON Example

{
"id": "2",
"name": "English",
"code": "en"
}

XML Example

<Language xmlns="http://schemas.datacontract.org/2004/07/Waytobi.App.Api.Models" 
         xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <id>2</id>
  <name>English</name>
<code>en</code> </Language>

 

Get all Languages

GET /api/languages

Using curl

curl https://app.waytobi.com/api/languages
  -v -u {token}

Example Response

Status: 200 OK
[
  {
"id": "1",
"name": "Русский",
"code": "ru"
}, {
"id": "2",
"name": "English",
"code": "en"
} ]

Get a Language

GET /api/language/{id}

Using curl

curl https://app.waytobi.com/api/language/{id}
  -v -u {token}

Example Response

Status: 200 OK
{
  "id": 2,
  "name": "English",
"code": "en" }

Unable to find an answer?

Looking for anything specific article which resides in general queries? Just browse the various relevant folders and categories and then you will find the desired article.

Contact Us