SafeLink API
PHP Curl :
<?php
$sl_user = "YourFaucetpayEmailAddress@gmail.com";
$sl_link = "https://yourdestinationlink.com";
$sl_base = "https://indonesiads.com/?api=".trim(strtolower($sl_user))."&url=".trim($sl_link);
$sl_curl = curl_init();
curl_setopt_array($sl_curl, array(CURLOPT_RETURNTRANSFER => TRUE,CURLOPT_URL => $sl_base,));
$sl_json = json_decode(curl_exec($sl_curl), TRUE);
curl_close($sl_curl);
if ($sl_json['status'] === "success") {
// $safelink = $sl_json['SafeLink'];
} else {
// failed, do something...
}
?>