Bilgisayar Teknik Servisleri için Program

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
06/06/2023, 00:03

mehmetdemiral

Php kodları Access içinde yorumlanmaz. Kodların aynısını VB olarak tekrar yazmak gerekir. En azından ben öyle biliyorum.
06/06/2023, 00:09

ozguryasin

Mehmet hocamın dediği gibi, Access içinde olmaz fakat web servis, api şeklinde dışarıdan çalıştırarak işlem yaptırabilirsiniz, Access içerisinden web özelliği ile çağırma olarak. Mobil uygulamalarda ki gibi, sadece tetikleme usulü.


(01/06/2023, 21:02)mincu yazdı: 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;

?>                           
     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31