মূল কনটেন্টে যান
Python logo

ZendSMS ইন্টিগ্রেশন নির্দেশিকা

HTTP client + REST API

Python application থেকে ZendSMS ব্যবহার করুন।

Python web app, background worker বা automation service-এর সঙ্গে ZendSMS REST API যুক্ত করুন।

Python logoPythonBusiness event
ZendSMS202 QUEUED
YOURBRAND

আপনার report প্রস্তুত। নিরাপদে দেখতে sign in করুন।

✓ Delivered
Integration typeHTTP client + REST API
Security patternশুধু server-side
Response202 Accepted + message_id

Common workflows

Python থেকে কী পাঠাতে পারেন।

Django, Flask, FastAPI বা background process থেকে business message পাঠান ও track করুন।

01

অ্যাপ্লিকেশন অ্যালার্ট

Backend logic থেকে customer বা staff notification trigger করুন।

02

ব্যাকগ্রাউন্ড টাস্ক

Worker থেকে scheduled বা batched message পাঠান।

03

OTP ওয়ার্কফ্লো

Protected route থেকে send ও verify endpoint call করুন।

04

ডেলিভারি রেকর্ড

পরবর্তী status reconciliation-এর জন্য message identifier রাখুন।

Verified API pattern

একটি business event থেকে একটি trackable SMS।

নিচের request ZendSMS-এর current Send SMS reference-এর field ব্যবহার করে। API key secret store-এ রাখুন, unique client_ref দিন এবং accepted response-এর message_id সংরক্ষণ করুন।

  1. 01

    Workflow ঠিক করুন

    কোন event-এ কাকে কোন message পাঠানো হবে তা নির্ধারণ করুন।

  2. 02

    Secure connection দিন

    API key শুধু server-এ রেখে HTTPS request তৈরি করুন।

  3. 03

    Template map করুন

    Approved sender ID, recipient, message ও client reference map করুন।

  4. 04

    Test করে চালু করুন

    Test number-এ result, segment ও delivery state দেখে production চালু করুন।

POST /api/v1/send-sms202
Authorization: Bearer sk_your_api_key
{
    "recipient": "8801700000000",
    "sender_id": "YOURBRAND",
    "message": "আপনার report প্রস্তুত। নিরাপদে দেখতে sign in করুন।",
    "client_ref": "python-job-2048"
}
success: truestatus: QUEUEDmessage_id: UUID
সম্পূর্ণ Send SMS reference দেখুন

Included in the workflow

শুধু send নয়, production-ready flow তৈরি করুন।

সঠিক event-এ SMS

নির্বাচিত business event ঘটলে তবেই message পাঠান।

সব core SMS type

Use case অনুযায়ী OTP, Masking বা Non-Masking SMS ব্যবহার করুন।

Track করার মতো reference

নিজস্ব client reference ও returned message ID সংরক্ষণ করুন।

Bangla ও Unicode

Customer-এর প্রয়োজন অনুযায়ী Bangla, English বা Unicode content পাঠান।

Python FAQ

Production চালুর আগে উত্তরগুলো দেখে নিন।

Security, SMS type, delivery reconciliation ও testing-এর সংক্ষিপ্ত guide।

Python integration কি browser থেকে API call করবে?

না। Secret API key কখনো browser বা public JavaScript-এ রাখা উচিত নয়। Request trusted server, backend function বা protected connector থেকে পাঠান।

Python থেকে কী ধরনের SMS পাঠানো যাবে?

Approved use case অনুযায়ী OTP, Masking ও Non-Masking SMS পাঠানো যায়। Sender ID ও template activation KYC, document এবং প্রযোজ্য operator বা regulatory approval-এর ওপর নির্ভরশীল।

Delivery result কীভাবে মিলাব?

প্রতিটি request-এ একটি unique client_ref দিন এবং accepted response-এর message_id সংরক্ষণ করুন। তারপর current API documentation অনুযায়ী delivery status reconcile করুন।

Setup চালুর আগে কী test করা উচিত?

Event mapping, recipient format, Bangla/Unicode segment, duplicate prevention, error handling এবং delivery result test করুন। Production চালুর আগে consent ও compliance review সম্পন্ন করুন।

Setup শুরু করতে প্রস্তুত?

Python workflow নিয়ে ZendSMS team-এর সঙ্গে কথা বলুন।

WhatsApp-এ কথা বলুন
WhatsApp-এ চ্যাট করুন