@extends('layouts.front') @section('title', 'SMS API Documentation') @section('contents') {{-- Tailwind CSS & SweetAlert2 --}}
সহজেই আমাদের গেটওয়ে আপনার প্ল্যাটফর্মে ইন্টিগ্রেট করুন।
| Parameter | Description |
|---|---|
api_key |
আপনার ইউনিক এপিআই কী। |
number |
প্রাপকের নম্বর (যেমন: 017XXXXXXXX)। |
$api_key = "{{ Auth::user()->api_key }}";
$url = "{{ url('/api/smsapi') }}";
$data = [
'api_key' => $api_key,
'number' => '01700000000',
'message' => 'This is a test message',
'type' => 'text'
];
$ch = curl_init($url."?".http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
{{ Auth::user()->api_key ?? 'Not Set' }}
{
"status": "success",
"msg": "SMS Sent Successfully",
"msg_id": "12345"
}