@extends('layouts.front') @section('title', 'SMS API Documentation') @section('contents') {{-- Tailwind CSS & SweetAlert2 --}}
{{-- ১. সাইডবার (স্থির রাখা হয়েছে) --}} {{-- ২. মেইন কন্টেন্ট (API Docs) --}}

এসএমএস এপিআই ডকুমেন্টেশন

সহজেই আমাদের গেটওয়ে আপনার প্ল্যাটফর্মে ইন্টিগ্রেট করুন।

{{-- বাম পাশের মেইন গাইড --}}
{{-- API Info Card --}}
Send SMS Endpoint
GET/POST
{{-- এন্ডপয়েন্ট ইউআরএল --}}
{{ url('/api/smsapi') }}?api_key={{ Auth::user()->api_key }}&type=text&number={number}&message={message}
{{-- প্যারামিটার টেবিল --}}
Parameter Description
api_key আপনার ইউনিক এপিআই কী।
number প্রাপকের নম্বর (যেমন: 017XXXXXXXX)।
{{-- কোড স্যাম্পল --}}
PHP Sample (cURL)
Copy
$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;
{{-- [NEW] প্লাগিন এবং অ্যাডন ডাউনলোড সেকশন --}}
রেডিমেড ইন্টিগ্রেশন (Plugins & Addons)
{{-- WordPress --}}
WordPress Plugin

SMS Gateway

{{-- এখানে href এ আপনার ফাইলের লিংক দিন --}} ডাউনলোড
{{-- WHMCS --}}
WHMCS Addon

Module

{{-- এখানে href এ আপনার ফাইলের লিংক দিন --}} ডাউনলোড
{{-- [END NEW SECTION] --}}
{{-- ডান পাশের ইনফো কার্ড --}}
Your API Key
{{ Auth::user()->api_key ?? 'Not Set' }}
Response Format
{
  "status": "success",
  "msg": "SMS Sent Successfully",
  "msg_id": "12345"
}
@endsection