loading
Please wait...
Catatan : Seluruh Request Type API dalam bentuk $_GET
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
 https://center.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan&pesan=#IsiPesan&id_port=#ID_Port
Catatan :

Jika Anda memiliki lebih dari 1 No.Center, dan Anda menggunakan API tanpa menyertakan #ID_Port, maka pengiriman akan dilakukan secara bergantian diantara No.Center yang anda miliki

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 Request API via Browser :
 https://reguler.medansms.co.id/sms_api.php?action=kirim_sms&email=bagas@yahoo.com&passkey=xxxxxx&no_tujuan=081234567890&pesan=MedanSMS
 https://center.medansms.co.id/sms_api.php?action=kirim_sms&email=bagas@yahoo.com&passkey=xxxxxx&no_tujuan=081234567890&pesan=MedanSMS&id_port=1
 https://center.medansms.co.id/sms_api.php?action=kirim_sms&email=bagas@yahoo.com&passkey=xxxxxx&no_tujuan=081234567890&pesan=MedanSMS&id_port=1,2 
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
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
 https://center.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda&id_port=#ID_Port
SMS Masking
 https://masking.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda
Contoh Request API via Browser :
 https://reguler.medansms.co.id/sms_api.php?action=kredit&email=bagas@yahoo.com&passkey=xxxxxx
 https://reguler.medansms.co.id/sms_api.php?action=kredit&email=bagas@yahoo.com&passkey=xxxxxx&id_port=1
 https://reguler.medansms.co.id/sms_api.php?action=kredit&email=bagas@yahoo.com&passkey=xxxxxx&id_port=1,2
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
Kotak Masuk
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=inbox&email=#Email_Anda&passkey=#Passkey_Anda&page=#Halaman&rows=#Jlh_Baris&q=#Kata_Kunci_Pencarian&dari_tgl=#Dari_Tanggal&sampai_tgl=#Sampai_Tanggal&jenis=#Jenis_Pesan
Contoh Request API via Browser :
https://center.medansms.co.id/sms_api.php?action=inbox&email=bagas@yahoo.com&passkey=xxxxxx&page=1&rows=10&q=&dari_tgl=&sampai_tgl=&jenis=0
https://center.medansms.co.id/sms_api.php?action=inbox&email=bagas@yahoo.com&passkey=xxxxxx&page=1&rows=10&q=&dari_tgl=01 Apr 2017&sampai_tgl=30 Apr 2017&jenis=0
					
Catatan :
#Email_Anda = Email anda yang Terdaftar di MedanSMS
#Passkey_Anda = Passkey anda di MedanSMS
#Halaman = Halaman ke-X (default : 1)
#Jlh_Baris = Jumlah Data yang ingin di tampilkan (default : 10)
#Kata_Kunci_Pencarian = Masukkan Kata Kunci Pencarian (default : )
#Dari_Tanggal = Data Dari Tanggal Berapa yang ingin di tampilkan (format : d M Y)
#Sampai_Tanggal = Data Sampai Tanggal Berapa yang ingin di tampilkan (format : d M Y)
#Jenis_Pesan = Jenis Pesan (0 = Seluruh Pesan, 1 = Hanya Pesan Sudah Dibaca, 2 = Hanya Pesan Belum Dibaca)
-Jika Total Seluruh Data ada 200 Data, dan #Halaman anda isi dengan angka 1 dan #Jlh_Baris anda isi dengan angka 10, maka data yang ditampilkan hanya 10 Data terakhir. Dan untuk menampilkan data berikutnya, anda bisa mengisi #Halaman dengan angka 2-20
Contoh Balasan API :
{
  "recordsTotal": 50,
  "recordsFiltered": 50,
  "data": [
    {
      "no": "1",
      "id": "9ccd99d1957010e93e07c3fbafd292750",
      "sudah_baca": "1",
      "tglterima": "02 Apr 2018/10:15:27",
      "nama_pengirim": null,
      "no_pengirim": "081264xxxxx",
      "isipesan": "SMS Dari Bagas"
    },
    {
      "no": "2",
      "id": "091d2b608fd54d5bea642982d95cae6b4",
      "sudah_baca": "1",
      "tglterima": "03 Apr 2018/10:02:36",
      "nama_pengirim": null,
      "no_pengirim": "081265xxxxx",
      "isipesan": "Saya akan hadir tepat waktu"
    },
    {
      "no": "3",
      "id": "20b82c95b501bacd1e776864209b17053",
      "sudah_baca": "0",
      "tglterima": "05 Apr 2018/13:37:56",
      "nama_pengirim": "Rudi",
      "no_pengirim": "081266xxxxx",
      "isipesan": "Terima kasih ats infonya"
    }
  ]
}
					
Catatan : Balasan API dalam bentuk JSON
Detail SMS Kotak Masuk
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=detail_inbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Inbox
Contoh Request API via Browser :
 https://center.medansms.co.id/sms_api.php?action=detail_inbox&email=bagas@yahoo.com&passkey=xxxxxx&id=e23bba41a9c588765965be9067bcea9fe
Contoh Balasan API :
{
  "id": "e23bba41a9c588765965be9067bcea9fe",
  "pengirim": "08139xxxxxx",
  "nama_pengirim": null,
  "pesan": "Selamat malam",
  "tglterima": "05 Apr 2017/10:15:27"
}
					
Catatan : Balasan API dalam bentuk JSON
Hapus Kotak Masuk
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=hapus_inbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Inbox
Contoh Request API via Browser :
 https://center.medansms.co.id/sms_api.php?action=hapus_inbox&email=bagas@yahoo.com&passkey=xxxxxx&id=e23bba41a9c588765965be9067bcea9fe
Contoh Script PHP ( 1 ):
$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");
$ID_Inbox = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=hapus_inbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Inbox;
$result = file_get_contents($url);
echo $result; //1=SUKSES, selain itu GAGAL
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");
$ID_Inbox = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=hapus_inbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Inbox;
$result = SendAPI_SMS($url);
echo $result; //1=SUKSES, selain itu GAGAL
Hapus Seluruh Kotak Masuk
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=bersih_inbox&email=#Email_Anda&passkey=#Passkey_Anda
Contoh Request API via Browser :
 https://center.medansms.co.id/sms_api.php?action=bersih_inbox&email=bagas@yahoo.com&passkey=xxxxxx
Contoh Script PHP ( 1 ):
$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");

$url = "https://center.medansms.co.id/sms_api.php?action=bersih_inbox&email=".$email_api."&passkey=".$passkey_api;
$result = file_get_contents($url);
echo $result; //1=SUKSES, selain itu GAGAL
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://center.medansms.co.id/sms_api.php?action=bersih_inbox&email=".$email_api."&passkey=".$passkey_api;
$result = SendAPI_SMS($url);
echo $result; //1=SUKSES, selain itu GAGAL
Tandai SMS Kotak Masuk menjadi Sudah Dibaca
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=tandai_inbox&email=#Email_Anda&passkey=#Passkey_Anda."&id=".$ID_Inbox
Contoh Request API via Browser :
 https://center.medansms.co.id/sms_api.php?action=tandai_inbox&email=bagas@yahoo.com&passkey=xxxxxx&id=e23bba41a9c588765965be9067bcea9fe
Contoh Script PHP ( 1 ):
$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");
$ID_Inbox = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=tandai_inbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Inbox;
$result = file_get_contents($url);
echo $result; //1=SUKSES, selain itu GAGAL
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");
$ID_Inbox = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=tandai_inbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Inbox;
$result = SendAPI_SMS($url);
echo $result //1=SUKSES, selain itu GAGAL
Kotak Keluar
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=outbox&email=#Email_Anda&passkey=#Passkey_Anda&page=#Halaman&rows=#Jlh_Baris&q=#Kata_Kunci_Pencarian&dari_tgl=#Dari_Tanggal&sampai_tgl=#Sampai_Tanggal
Contoh Request API via Browser :
https://center.medansms.co.id/sms_api.php?action=outbox&email=bagas@yahoo.com&passkey=xxxxxx&page=1&rows=10&q=&dari_tgl=&sampai_tgl=
https://center.medansms.co.id/sms_api.php?action=outbox&email=bagas@yahoo.com&passkey=xxxxxx&page=1&rows=10&q=&dari_tgl=01 Apr 2017&sampai_tgl=30 Apr 2017
					
Catatan :
#Email_Anda = Email anda yang Terdaftar di MedanSMS
#Passkey_Anda = Passkey anda di MedanSMS
#Halaman = Halaman ke-X (default : 1)
#Jlh_Baris = Jumlah Data yang ingin di tampilkan (default : 10)
#Kata_Kunci_Pencarian = Masukkan Kata Kunci Pencarian (default : )
#Dari_Tanggal = Data Dari Tanggal Berapa yang ingin di tampilkan (format : d M Y)
#Sampai_Tanggal = Data Sampai Tanggal Berapa yang ingin di tampilkan (format : d M Y)
-Jika Total Seluruh Data ada 200 Data, dan #Halaman anda isi dengan angka 1 dan #Jlh_Baris anda isi dengan angka 10, maka data yang ditampilkan hanya 10 Data terakhir. Dan untuk menampilkan data berikutnya, anda bisa mengisi #Halaman dengan angka 2-20
Contoh Balasan API :
{
 {
  "recordsTotal": 50,
  "recordsFiltered": 50,
  "data": [
    {
      "no": "1",
      "id": "628c0530859150vca0df8d5604a2414485",
      "tglkirim": "05 Apr 2017/16:35:47",
      "no_tujuan": "0852xxxxxx",
      "nama_tujuan": null,
      "isipesan": "Silahkan untuk datang ke Kantor kami besok pagi",
      "jlh_sms": "1",
      "status": "Terkirim"
    },
    {
      "no": "2",
      "id": "8febd9bcd1fb5acv5afbfd62490a38708f",
      "tglkirim": "06 Apr 2017/16:35:29",
      "no_tujuan": "0853xxxxxx",
      "nama_tujuan": "Rudi Telolet",
      "isipesan": "Jangan Lupa ya...",
      "jlh_sms": "1",
      "status": "Terkirim"
    },
    {
      "no": "3",
      "id": "6fc4fad8c29b4b70fva9671fa4dfd8c93c",
      "tglkirim": "07 Apr 2017/16:34:51",
      "no_tujuan": "0854xxxxxx",
      "nama_tujuan": null,
      "isipesan": "Kapan kita berangkat",
      "jlh_sms": "1",
      "status": "Terkirim"
    }
  ]
}
					
Catatan : Balasan API dalam bentuk JSON
Detail SMS Kotak Keluar
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=detail_outbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Outbox
Contoh Request API via Browser :
 https://center.medansms.co.id/sms_api.php?action=detail_outbox&email=bagas@yahoo.com&passkey=xxxxxx&id=e23bba41a9c588765965be9067bcea9fe
Contoh Balasan API :
{
  "id": "e23bba41a9c588765965be9067bcea9fe",
  "tujuan": "08139xxxxxx",
  "nama_tujuan": null,
  "pesan": "Selamat malam",
  "tglkirim": "05 Apr 2017/10:15:27",
  "status": "Terkirim"
}
					
Catatan : Balasan API dalam bentuk JSON
Hapus Kotak Keluar
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=hapus_outbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Outbox
Contoh Request API via Browser :
 https://center.medansms.co.id/sms_api.php?action=hapus_outbox&email=bagas@yahoo.com&passkey=xxxxxx&id=e23bba41a9c588765965be9067bcea9fe
Contoh Script PHP ( 1 ):
$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");
$ID_Outbox = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=hapus_outbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Outbox;
$result = file_get_contents($url);
echo $result; //1=SUKSES, selain itu GAGAL
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");
$ID_Outbox = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=hapus_outbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Outbox;
$result = SendAPI_SMS($url);
echo $result; //1=SUKSES, selain itu GAGAL
Hapus Seluruh Kotak Keluar
( Khusus SMS Center )
Format API :
 https://center.medansms.co.id/sms_api.php?action=bersih_outbox&email=#Email_Anda&passkey=#Passkey_Anda
Contoh Request API via Browser :
 https://center.medansms.co.id/sms_api.php?action=bersih_outbox&email=bagas@yahoo.com&passkey=xxxxxx
Contoh Script PHP ( 1 ):
$email_api = urlencode("bagas@yahoo.com");
$passkey_api = urlencode("xxxxxx");

$url = "https://center.medansms.co.id/sms_api.php?action=bersih_outbox&email=".$email_api."&passkey=".$passkey_api;
$result = file_get_contents($url);
echo $result; //1=SUKSES, selain itu GAGAL
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://center.medansms.co.id/sms_api.php?action=bersih_outbox&email=".$email_api."&passkey=".$passkey_api;
$result = SendAPI_SMS($url);
echo $result; //1=SUKSES, selain itu GAGAL