PHP
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,'https://www.versio.nl/testapi/v1/contacts/123456');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, "$login:$password");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$response = curl_exec($curl);
$data = json_decode($response);
/* Get the redirection URL */
$redirectURL = curl_getinfo($curl,CURLINFO_EFFECTIVE_URL );
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
?>
Toon Meer
Dit is het scriptje van iemand die 'Delete Contact' wil doen. Ik wil 'Register Domain' doen. Misschien dat dit omgezet kan worden?