delete() public method

Trigger a GET request
public delete ( array $resource, array $args = [] ) : Response
$resource array Mailjet Resource/Action pair
$args array Request arguments
return Response
Esempio n. 1
0
 /**
  * Trigger a GET request
  *
  * @param array $resource Mailjet Resource/Action pair
  * @param array $args     Request arguments
  *
  * @return Response
  */
 public function delete($resource, $args = [])
 {
     $response = parent::delete($resource, $args);
     $this->calls[] = ['method' => 'DELETE', 'resource' => $resource, 'args' => $args, 'success' => $response->success(), 'response' => $response->getBody()];
     return $response;
 }