[Solved] Perform DELETE request to Github API in PHP

[ad_1]

You can use cURL with its CURLOPT_CUSTOMREQUEST to perform a DELETE request. The result would look a bit like the following (untested!) code:

$curl = curl_init($apiUrl . '/user/following/:username');
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");
$result = curl_exec($curl);

[ad_2]

solved Perform DELETE request to Github API in PHP