/**
  * DELETE method.
  *
  * @param string $endpoint   API endpoint.
  * @param array  $parameters Request parameters.
  *
  * @return array
  */
 public function delete($endpoint, $parameters = [])
 {
     return $this->http->request($endpoint, 'DELETE', [], $parameters);
 }
Example #2
0
 /**
  * OPTIONS method.
  *
  * @param string $endpoint API endpoint.
  *
  * @return array
  */
 public function options($endpoint)
 {
     return $this->http->request($endpoint, 'OPTIONS', [], []);
 }