From 7781d1116f1ddcbf05f89d86e371617d7ca016ee Mon Sep 17 00:00:00 2001 From: Ahmad Syamim Date: Fri, 31 Jul 2020 14:25:48 +0900 Subject: [PATCH] Update Vtiger.php to change delete() from GET to POST method --- src/Vtiger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Vtiger.php b/src/Vtiger.php index 7e7d137..d89b1fa 100644 --- a/src/Vtiger.php +++ b/src/Vtiger.php @@ -504,8 +504,8 @@ public function delete($id) try { // send a request to delete a record - $response = $this->guzzleClient->request('GET', $this->url, [ - 'query' => [ + $response = $this->guzzleClient->request('POST', $this->url, [ + 'form_params' => [ 'operation' => 'delete', 'sessionName' => $sessionId, 'id' => $id,