Languages

Create Languages

Method: POST

URL: https://go.votomobile.org/api/v1/languages

Parameters:

  • api_key
  • language_name: name of group
  • language_abbreviation (optional): This is the Language Abbreviation [ eg. EN for English ]

Returns:

ID of the language

{"status":200,"message":"Language Created","data":{id: 430}}

List Languages

Method: GET

URL: https://go.votomobile.org/api/v1/languages

Parameters:

  • api_key

Returns:

{
"status":200,
"message":"Language Details",
  "data": {
    "languages": [
     {
      id: 111,
      name: "Dagbani",
      abbreviation: "DG"
     },
     {
      id: 112,
      name: "English",
      abbreviation: "EN"
     }
     ]
}
}

List Language Details

Method: GET

URL: https://go.votomobile.org/api/v1/languages/[language_id]

Parameters:

  • api_key

Returns:

{
  "status":200,
  "message": "Language Details",
    "data" : {
      language:
      {
       id: 112,
       name: "English",
       abbreviation: "EN"
      }
    }
}

Modify Language Details

Method: PUT

URL: https://go.votomobile.org/api/v1/languages/[language_id]

Parameters: Specify only language parameters to be changed

  • api_key
  • language_name: name of group
  • language_abbreviation (optional): This is the Language Abbreviation [ eg. EN for English ]

Returns:

ID of the language

{"status":200,"data":null,"message":"Language Modified","id":"309"}

Delete Language

Method: DELETE

URL: https://go.votomobile.org/api/v1/languages/[language_id]

Parameters: Specify language id to delete

  • api_key

Returns:

{"status":200,"data":null,"message":"Succesfully deleted language"}