Skip to main content

AccessTr.neT


Bilgisayar Teknik Servisleri için Program

Bilgisayar Teknik Servisleri için Program

#180
aşagıdaki php kodu Access içerisinde nasıl gömebilirim.. sms gönderim için örnek php ile post medot şeklinde gönderim kodu
Kod:
<?php

$curl = curl_init();

$params = [
  'api_id' => 'API_ID',
  'api_key' => 'API_KEY',
  'sender' => 'SMSBASLIGINIZ',
  'message_type' => 'normal',
  'message' => 'Bu bir test mesajıdır.',
  'message_content_type' => 'bilgi', // ticari smsler için 'ticari'
  'phones' => [
    '5xxxxxxxxx',
    '5xxxxxxxxx'
  ]
];

$curl_options = [
  CURLOPT_URL => 'https://api.vatansms.net/api/v1/1toN',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_SSL_VERIFYPEER => 0,
  CURLOPT_POSTFIELDS => json_encode($params),
  CURLOPT_HTTPHEADER => [
    'Content-Type: application/json'
  ]
];

curl_setopt_array($curl, $curl_options);

$response = curl_exec($curl);

curl_close($curl);

echo $response;

?>

Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
RE: Bilgisayar Teknik Servisleri için Program - Yazar: mincu - 01/06/2023, 21:02