API:getTicketDepts - Get ticket departments

Get list of ticket departments.

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=getTicketDepts

Response

   {
      "success": true,
      "depts": [
         {
            "id": "1",
            "name": "Billing",
            "description": "",
            "email": "bill@mail.com",
            "visible": "1",
            "assigned_admins": {
               "1": "1",
               "2": "2"
            },
			"tickets": "14"
         },
         {
            "id": "2",
            "name": "Tech",
            "description": "",
            "email": "tech@mail.com",
            "visible": "1",
            "assigned_admins": {
               "1": "1",
               "2": "2"
            },
			"tickets": "6"
         }
      ],
      "call": "getTicketDepts",
      "server_time": 1323790039
   }