* `yes`: Both customers/staff,
* `conly`: Only customers,
* `sonly`: Only staff,
* `no`: No one * @apiSuccess {String} key The language key. This is deprecated and should not be used. * @apiSuccess {Object[]} keys The language strings for each language * @apiSuccess {String} keys.language The language for the status name * @apiSuccess {String} keys.text The translated string of the status * * @apiSuccessExample {json} Success-Response: * HTTP/1.1 200 OK * { * "id": 0, * "textColor": "#FF0000", * "isNewTicketStatus": true, * "isClosed": false, * "isClosedByClient": false, * "isCustomerReplyStatus": false, * "isStaffClosedOption": false, * "isStaffReopenedStatus": false, * "isDefaultStaffReplyStatus": false, * "lockedTicketStatus": false, * "isAutocloseOption": false, * "closable": "yes", * "key": null, * "keys": [ * { * "language": "English", * "text": "New" * }, * { * "language": "EspaƱol", * "text": "Nuevo" * } * ] * } */ if ($request_method == 'GET') { if (isset($_GET['id'])) { $results = get_status($hesk_settings, $_GET['id']); } else { $results = get_status($hesk_settings); } if ($results == NULL) { return http_response_code(404); } return output($results); } return http_response_code(405);