loading
Please wait...
API Kirim SMS
SMS Reguler
 https://reguler.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan&pesan=#IsiPesan
SMS Center
 https://center.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan&pesan=#IsiPesan
SMS Masking
 https://masking.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan&pesan=#IsiPesan
Contoh via Browser :
 https://reguler.medansms.co.id/sms_api.php?action=kirim_sms&email=bagas@yahoo.com&passkey=xxxxxx&no_tujuan=081234567890&pesan=MedanSMS
Contoh Script PHP ( 1 ):
$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");
$no_hp_tujuan = urlencode("081234567890");
$isi_pesan = urlencode("Coba kirim SMS");

$url = "https://reguler.medansms.co.id/sms_api.php?action=kirim_sms&email=".$email_api."&passkey=".$passkey_api."&no_tujuan=".$no_hp_tujuan."&pesan=".$isi_pesan;
$result = file_get_contents($url);
$data = explode("~~~", $result);

echo $data[0]; //1=SUKSES, selain itu GAGAL
echo $data[1]; //Panjang SMS
echo $data[2]; //Jumlah SMS yang dikirim
echo $data[3]; //Total Kredit yang digunakan
echo $data[4]; //Sisa Kredit
echo $data[5]; //Jenis Paket SMS (1=SMS Gratis, 0=SMS Reguler/SMS Center/SMS Masking
Contoh Script PHP ( 2 ):
function SendAPI_SMS($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}

$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");
$no_hp_tujuan = urlencode("081234567890");
$isi_pesan = urlencode("Coba kirim SMS");

$url = "https://reguler.medansms.co.id/sms_api.php?action=kirim_sms&email=".$email_api."&passkey=".$passkey_api."&no_tujuan=".$no_hp_tujuan."&pesan=".$isi_pesan;
$result = SendAPI_SMS($url);
$data = explode("~~~", $result);

echo $data[0]; //1=SUKSES, selain itu GAGAL
echo $data[1]; //Panjang SMS
echo $data[2]; //Jumlah SMS yang dikirim
echo $data[3]; //Total Kredit yang digunakan
echo $data[4]; //Sisa Kredit
echo $data[5]; //Jenis Paket SMS (1=SMS Gratis, 0=SMS Reguler/SMS Center/SMS Masking
API Cek Sisa Kredit
SMS Reguler
 https://reguler.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda
SMS Center
 https://center.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda
SMS Masking
 https://masking.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda
Contoh via Browser :
 https://reguler.medansms.co.id/sms_api.php?action=kredit&email=bagas@yahoo.com&passkey=xxxxxx
Contoh Script PHP ( 1 ) :
$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");

$url = "https://reguler.medansms.co.id/sms_api.php?action=kredit&email=".$email_api."&passkey=".$passkey_api;
$result = file_get_contents($url);
$data = explode("~~~", $result);

echo $data[0]; //1=SUKSES, selain itu GAGAL
echo $data[1]; //Sisa Kredit SMS
Contoh Script PHP ( 2 ):
function SendAPI_SMS($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}

$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");

$url = "https://reguler.medansms.co.id/sms_api.php?action=kredit&email=".$email_api."&passkey=".$passkey_api;
$result = SendAPI_SMS($url);
$data = explode("~~~", $result);

echo $data[0]; //1=SUKSES, selain itu GAGAL
echo $data[1]; //Sisa Kredit SMS