
API Dökümantasyonu
Genel Özellikler
SNC API ile kendi yazılımlarınız üzerinden tek seferde 10.000 adet mesaja kadar direk bağlantı sağlayarak mesaj gönderimi yapabilirsiniz.
API Kullanım Metodlarımız
PHP cURL Metodu
<?php function sms_gonder ( $url, $strRequest ) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1) ; curl_setopt($ch, CURLOPT_POSTFIELDS, $strRequest); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $result = curl_exec($ch); curl_close($ch); return $result; } ?>
Tekli ve grup SMS gönderimi için;
POST edilecek alanlar; islem=1 / user=kullaniciadiniz / pass=sifreniz / mesaj=Mesaj Metni / numaralar=5321112233,5424445566,5056661144 / baslik=850
<?php $durum = sms_gonder("http://api.snchaberlesme.com/index.php", "islem=1&user=xxx&pass=yyy&mesaj=Deneme&numaralar=5321112233,5424445566,5056661144&baslik=850"); ?>
Kontör Sorgulamak için;
POST edilecek alanlar; islem=2 / user=kullaniciadiniz / pass=sifreniz
<?php $durum = sms_gonder("http://api.snchaberlesme.com/index.php", "islem=2&user=xxx&pass=yyy"); ?>
Kayıtlı Başlıkları Sorgulamak için;
POST edilecek alanlar; islem=3 / user=kullaniciadiniz / pass=sifreniz
<?php $durum = sms_gonder("http://api.snchaberlesme.com/index.php", "islem=3&user=xxx&pass=yyy"); ?>
Yaptığınız Gönderimleri Sorgulamak için;
POST edilecek alanlar; islem=6 / ref=ReferansNo / user=kullaniciadiniz / pass=sifreniz
<?php $durum = sms_gonder("http://api.snchaberlesme.com/request.php", "islem=6&ref=GonderimID&user=xxx&pass=yyy"); ?>