Language


Get Category Count

Method URL
POST /languages

Sample Request

var form = new FormData();

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://demo.flexipim.com/api/v2/languages",
  "method": "POST",
  "headers": {
    "token": "your-flexiPIM-API-token",
    "cache-control": "no-cache",
    "postman-token": "22ca027d-bc3f-8fa8-c4cd-c48d65b0cabc"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});

{success} Success Response

{
    "success": true,
    "data": [
        {
            "id": 1,
            "name": "English \u2013 United States",
            "code": "en_US",
            "flag": "flag-us",
            "status": 1,
            "created_at": "2019-09-06 06:39:29",
            "updated_at": "2019-09-06 06:39:29"
        },
        {
            "id": 57,
            "name": "Spanish \u2013 Venezuela",
            "code": "es_VE",
            "flag": "flag-ve",
            "status": 1,
            "created_at": "2019-09-06 06:39:29",
            "updated_at": "2020-02-11 19:21:56"
        },
        {
            "id": 70,
            "name": "Hindi \u2013 India",
            "code": "hi_IN",
            "flag": "flag-in",
            "status": 1,
            "created_at": "2019-09-06 06:39:29",
            "updated_at": "2020-02-18 14:02:16"
        }
    ],
    "message": "Active Languages retrieved successfully."
}

{danger} Error Response

{
    "success": false,
    "message": "Error.",
    "data": "token required"
}