Intercom\IntercomClient::delete PHP Méthode

delete() public méthode

Sends DELETE request to Intercom API.
public delete ( string $endpoint, string $json ) : mixed
$endpoint string
$json string
Résultat 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);
    }