Intercom\IntercomClient::delete PHP Method

delete() public method

Sends DELETE request to Intercom API.
public delete ( string $endpoint, string $json ) : mixed
$endpoint string
$json string
return mixed
    public function delete($endpoint, $json)
    {
        $response = $this->http_client->request('DELETE', "https://api.intercom.io/{$endpoint}", ['json' => $json, 'auth' => $this->getAuth(), 'headers' => ['Accept' => 'application/json']]);
        return $this->handleResponse($response);
    }