From 967e0ea2436d7b99ac49bb7fc51f7368e7e940da Mon Sep 17 00:00:00 2001 From: Steve Shearer Date: Sat, 12 Mar 2022 09:56:56 -0500 Subject: [PATCH] Updated ticket endpoints request validators to handle latest parameter lists from SupportBee documentation. --- src/API/Tickets.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/API/Tickets.php b/src/API/Tickets.php index af31794..1b9f571 100644 --- a/src/API/Tickets.php +++ b/src/API/Tickets.php @@ -15,8 +15,8 @@ public static function tickets($options = array()) { self::validate($options, array( 'per_page', 'page', 'archived', 'spam', 'trash', 'replies', 'max_replies', 'assigned_user', - 'assigned_group', 'starred', 'label', 'since', - 'until', 'requester_emails' + 'assigned_team', 'starred', 'label', 'since', + 'until', 'sort_by', 'requester_emails', 'total_only' )); return self::process_request('tickets', $options); @@ -37,7 +37,7 @@ public static function search($options = array()) { public static function create_ticket($options = array()) { self::validate($options, array( - 'subject', 'requester_name', 'requester_email', 'copied_emails', + 'subject', 'requester_name', 'requester_email', 'cc', 'copied_emails', 'bcc', 'notify_requester', 'content', 'attachment_ids', 'forwarding_address_id' ), array('subject', 'requester_name', 'requester_email', 'content')); @@ -87,11 +87,11 @@ public static function trash_ticket($id = 0) { public static function untrash_ticket($id = 0) { return self::process_request('tickets/'.$id.'/trash', array(), 'DELETE'); } - + public static function add_label($id, $label) { return self::process_request('tickets/'.$id.'/labels/'.$label, array(), 'POST'); } - + public static function remove_label($id, $label) { return self::process_request('tickets/'.$id.'/labels/'.$label, array(), 'DELETE'); }