Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Update Vtiger.php to change delete() from GET to POST method
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadsyamim committed Jul 31, 2020
1 parent 5d24150 commit 7781d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Vtiger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7781d11

Please sign in to comment.