Exemplo n.º 1
0
 /**
  * Execute a delete API request.
  *
  * @param string $resource
  * @param mixed $id
  * @param array $data
  * @return Response
  */
 public function delete($resource, $id, $data = [])
 {
     $request = new Request(Request::DELETE, $resource);
     $request->setId($id);
     $request->setContent($data);
     return $this->execute($request);
 }