MUTLUCELL-API

Örnek PHP Class'ları

Örnek PHP Class'ları

Önceki Konu Bu Son Konu  

Örnek PHP Class'ları

Önceki Konu Bu Son Konu Yazdır için javascript aktif olması lazım!  

       Mesaj Gönderme

 

<?php

 

$curl = curl_init();

 

curl_setopt_array($curl, array(

         CURLOPT_URL => 'https://smsgw.mutlucell.com/smsgw-ws/sndblkex',

         CURLOPT_RETURNTRANSFER => true,

         CURLOPT_ENCODING => '',

         CURLOPT_MAXREDIRS => 10,

         CURLOPT_TIMEOUT => 0,

         CURLOPT_FOLLOWLOCATION => true,

         CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

         CURLOPT_CUSTOMREQUEST => 'POST',

         CURLOPT_POSTFIELDS => '<?xml version="1.0" encoding="UTF-8"?>

                                                    <smspack ka="kullanici_adiniz" pwd="parolaniz" org="mesaj_basligi">

                                                    <mesaj>

                                                            <metin>iyi bayramlar..</metin>

                                                            <nums>5361234567</nums>

                                                    </mesaj>

                                                     

                                                    <mesaj>

                                                            <metin>Merhaba. Bu bir deneme mesajidir.</metin>

                                                            <nums>5411234567</nums>

                                                    </mesaj>

                                                    </smspack>',

         CURLOPT_HTTPHEADER => array( 'Content-Type: text/xml' ),

));

 

$response = curl_exec($curl);

 

curl_close($curl);

echo $response;

       Kontör Sorgulama

 

<?php

 

$curl = curl_init();

 

curl_setopt_array($curl, array(

         CURLOPT_URL => 'https://smsgw.mutlucell.com/smsgw-ws/gtcrdtex',

         CURLOPT_RETURNTRANSFER => true,

         CURLOPT_ENCODING => '',

         CURLOPT_MAXREDIRS => 10,

         CURLOPT_TIMEOUT => 0,

         CURLOPT_FOLLOWLOCATION => true,

         CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

         CURLOPT_CUSTOMREQUEST => 'POST',

         CURLOPT_POSTFIELDS => '<?xml version="1.0" encoding="UTF-8"?><smskredi ka="kullanici_adiniz" pwd="parolaniz" />',

         CURLOPT_HTTPHEADER => array( 'Content-Type: text/xml' ),

));

 

$response = curl_exec($curl);

 

curl_close($curl);

echo $response;

       Originatör Sorgulama

 

<?php

 

$curl = curl_init();

 

curl_setopt_array($curl, array(

         CURLOPT_URL => 'https://smsgw.mutlucell.com/smsgw-ws/gtorgex',

         CURLOPT_RETURNTRANSFER => true,

         CURLOPT_ENCODING => '',

         CURLOPT_MAXREDIRS => 10,

         CURLOPT_TIMEOUT => 0,

         CURLOPT_FOLLOWLOCATION => true,

         CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

         CURLOPT_CUSTOMREQUEST => 'POST',

         CURLOPT_POSTFIELDS => '<?xml version="1.0" encoding="UTF-8"?><smsorig ka="kullanici_adiniz" pwd="parolaniz" />',

         CURLOPT_HTTPHEADER => array( 'Content-Type: text/xml' ),

));

 

$response = curl_exec($curl);

 

curl_close($curl);

echo $response;

 

Button