loading
Please wait...
Catatan :
- Seluruh Request Type API dalam bentuk $_GET / $_POST
- Gunakan Parameter json=1 untuk Output dalam format JSON
- ID Kirim hanya tampil jika menggunakan Parameter json=1
- Gunakan Tanda Koma, jika pengiriman SMS lebih dari 1 Nomor Tujuan
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
 https://reguler.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan_1,#NoHPTujuan_2,#NoHPTujuan_3&pesan=#IsiPesan
 https://reguler.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan&pesan=#IsiPesan&json=1
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_1,#NoHPTujuan_2,#NoHPTujuan_3&pesan=#IsiPesan
 https://center.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan&pesan=#IsiPesan&json=1
 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
 https://masking.medansms.co.id/sms_api.php?action=kirim_sms&email=#Email_Anda&passkey=#Passkey_Anda&no_tujuan=#NoHPTujuan&pesan=#IsiPesan&json=1
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]; //Jumlah Nomor Tujuan Valid
echo $data[2]; //Jumlah Nomor Tujuan yang dapat dikirim SMS
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]; //Jumlah Nomor Tujuan Valid
echo $data[2]; //Jumlah Nomor Tujuan yang dapat dikirim SMS
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 format JSON ( 3 ):
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("08139641xxxxxx,08139642xxxxxx");
$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."&json=1";
$result       = SendAPI_SMS($url);

//Contoh Balasan API :
	[{
	  "status": 1,
	  "jumlah_tujuan": 2,
	  "jumlah_dikirim": 2,
	  "kredit_digunakan": 2,
	  "sisa_kredit": 8381,
	  "jenis_paket": 0,
	  "id_kirim": [{
		"nomor_tujuan": "08139641xxxxxx",
		"id_kirim_detail": "3c841dde0b022ca036523f50aa489d99"
	  }, {
		"nomor_tujuan": "08139642xxxxxx",
		"id_kirim_detail": "f5938238b4d2b6d4aa196cc5933d59ee"
	  }]
	}]					
					
					
Laporan Pengiriman
Format API :
 https://reguler.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=#Email_Anda&passkey=#Passkey_Anda&id_kirim=#ID_Kirim
 https://reguler.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=#Email_Anda&passkey=#Passkey_Anda&id_kirim=#ID_Kirim_1,#ID_Kirim_2,#ID_Kirim_3
 https://center.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=#Email_Anda&passkey=#Passkey_Anda&id_kirim=#ID_Kirim
 https://center.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=#Email_Anda&passkey=#Passkey_Anda&id_kirim=#ID_Kirim_1,#ID_Kirim_2,#ID_Kirim_3
Catatan : Gunakan Tanda Koma, jika lebih dari 1 ID Kirim
Contoh Request API via Browser :
 https://reguler.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=bagas@yahoo.com&passkey=xxxxxx&id_kirim=83972ed851a0285c157b4f3d4736533b
 https://reguler.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=bagas@yahoo.com&passkey=xxxxxx&id_kirim=83972ed851a0285c157b4f3d4736533b,37983983dc353b50f091e05b4e092041
 https://center.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=bagas@yahoo.com&passkey=xxxxxx&id_kirim=83972ed851a0285c157b4f3d4736533b
 https://center.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=bagas@yahoo.com&passkey=xxxxxx&id_kirim=83972ed851a0285c157b4f3d4736533b,37983983dc353b50f091e05b4e092041
Contoh Script PHP :
$email_api	= urlencode("bagas@yahoo.com");
$passkey_api	= urlencode("xxxxxx");
$id_kirim	= urlencode("83972ed851a0285c157b4f3d4736533b");
						
$url		= "https://reguler.medansms.co.id/sms_api.php?action=laporan_pengiriman&email=".$email_api."&passkey=".$passkey_api."&id_kirim=".$id_kirim;
$result 	= file_get_contents($url);
						
//Contoh Balasan API :

[{
  "id_kirim": "83972ed851a0285c157b4f3d4736533b",
  "no_tujuan": "081396413851",
  "tgl_kirim": "25-Apr-2019\/11:40:57",
  "laporan_pengiriman": "Terkirim"
}]
					
Cek Sisa Kredit
SMS Reguler
 https://reguler.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda
 https://reguler.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda&json=1
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&json=1
 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
 https://masking.medansms.co.id/sms_api.php?action=kredit&email=#Email_Anda&passkey=#Passkey_Anda&json=1
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&json=1
 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
echo $data[2]; //Tanggal Kadaluarsa, Format : d-M-Y
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
echo $data[2]; //Tanggal Kadaluarsa, Format : d-M-Y
Kotak Keluar
Format API :
https://reguler.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
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_kirim": "628c0530859150vca0df8d5604a2414485",
      "tgl_kirim": "05 Apr 2017/16:35:47",
      "no_tujuan": "0852xxxxxx",
      "nama_tujuan": null,
      "isi_pesan": "Silahkan untuk datang ke Kantor kami besok pagi",
      "jlh_sms": "1",
      "laporan_pengiriman": "Terkirim"
    },
    {
      "no": "2",
      "id_kirim": "8febd9bcd1fb5acv5afbfd62490a38708f",
      "tgl_kirim": "06 Apr 2017/16:35:29",
      "no_tujuan": "0853xxxxxx",
      "nama_tujuan": "Rudi Telolet",
      "isi_pesan": "Jangan Lupa ya...",
      "jlh_sms": "1",
      "laporan_pengiriman": "Terkirim"
    },
    {
      "no": "3",
      "id_kirim": "6fc4fad8c29b4b70fva9671fa4dfd8c93c",
      "tgl_kirim": "07 Apr 2017/16:34:51",
      "no_tujuan": "0854xxxxxx",
      "nama_tujuan": null,
      "isi_pesan": "Kapan kita berangkat",
      "jlh_sms": "1",
      "laporan_pengiriman": "Terkirim"
    }
  ]
}
					
Catatan : Balasan API dalam bentuk JSON
Detail SMS Kotak Keluar
Format API :
https://reguler.medansms.co.id/sms_api.php?action=detail_outbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Kirim
https://center.medansms.co.id/sms_api.php?action=detail_outbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Kirim
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_kirim": "e23bba41a9c588765965be9067bcea9fe",
  "no_tujuan": "08139xxxxxx",
  "nama_tujuan": null,
  "isi_pesan": "Selamat malam",
  "jlh_sms": 1,
  "tgl_kirim": "05 Apr 2017/10:15:27",
  "laporan_pengiriman": "Terkirim"
}
					
Catatan : Balasan API dalam bentuk JSON
Hapus Kotak Keluar
Format API :
https://reguler.medansms.co.id/sms_api.php?action=hapus_outbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Kirim
https://center.medansms.co.id/sms_api.php?action=hapus_outbox&email=#Email_Anda&passkey=#Passkey_Anda&id=#ID_Kirim
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_Kirim = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=hapus_outbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Kirim;
$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_Kirim = urlencode("e23bba41a9c588765965be9067bcea9fe");

$url = "https://center.medansms.co.id/sms_api.php?action=hapus_outbox&email=".$email_api."&passkey=".$passkey_api."&id=".$ID_Kirim;
$result = SendAPI_SMS($url);
echo $result; //1=SUKSES, selain itu GAGAL
Hapus Seluruh Kotak Keluar
Format API :
https://reguler.medansms.co.id/sms_api.php?action=bersih_outbox&email=#Email_Anda&passkey=#Passkey_Anda
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
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
 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&json=1
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