Channels


Get Category Count

Method URL
POST /channels

Sample Request

var form = new FormData();

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://demo.flexipim.com/api/v2/channels",
  "method": "POST",
  "headers": {
    "token": "your-flexiPIM-API-token",
    "cache-control": "no-cache",
    "postman-token": "1a1cf9a7-04a8-be5c-d85b-852bb301676a"
  },
  "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,
            "code": "mobile",
            "status": 1,
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2019-09-06 06:39:29",
            "updated_at": "2020-02-23 18:53:13",
            "name": "Mobile"
        },
        {
            "id": 2,
            "code": "web",
            "status": 1,
            "created_by": 7,
            "updated_by": 7,
            "created_at": "2019-09-06 06:39:29",
            "updated_at": "2020-02-23 18:53:09",
            "name": "Web"
        },
        {
            "id": 3,
            "code": "print",
            "status": 1,
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2019-09-06 06:39:29",
            "updated_at": "2020-02-20 11:47:04",
            "name": "Print"
        },
        {
            "id": 4,
            "code": "ERP",
            "status": 1,
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2019-09-18 11:25:42",
            "updated_at": "2020-02-23 18:53:10",
            "name": "ERP System"
        },
        {
            "id": 6,
            "code": "c1",
            "status": 1,
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2019-12-19 16:07:51",
            "updated_at": "2020-02-23 18:53:11",
            "name": "Customer 1"
        },
        {
            "id": 8,
            "code": "Experiment1",
            "status": 1,
            "created_by": 7,
            "updated_by": 7,
            "created_at": "2020-02-23 19:27:33",
            "updated_at": "2020-02-23 19:28:27",
            "name": "Experiment 1"
        }
    ],
    "message": "Channels retrieved successfully."
}

{danger} Error Response

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