Skip to content

his Python module provides a simple wrapper for sending SMS messages using the FarazSms API. The FarazSms API allows you to send single SMS messages and check the delivery status of messages.

Notifications You must be signed in to change notification settings

mohder79/farazsms-api-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

About the Project

This Python module provides a simple wrapper for sending SMS messages using the FarazSms API. The FarazSms API allows you to send single SMS messages and check the delivery status of messages.

Usage

Initialize FarazSms Object:

from farazsms import FarazSms

api_key = "YOUR_API_KEY"
faraz_sms = FarazSms(api_key)

Send SMS:

recipient_numbers = ["123456789", "987654321"]
message_content = "Hello, this is a test message."

response = faraz_sms.send_message(recipient_numbers, message_content)
print(response)

Check Account Credit:

credit_info = faraz_sms.credit()
print(credit_info)

Check Message Delivery Status:

    bulk_id = "YOUR_BULK_ID"
    delivery_status = faraz_sms.Delivery_check(bulk_id)
    print(delivery_status)

API Documentation

For detailed information about the FarazSms API, refer to the official API documentation.

Note

Make sure to replace "YOUR_API_KEY" and "YOUR_BULK_ID" with your actual FarazSms API key and bulk ID.

درباره پروژه

این ماژول پایتون یک روش ساده برای ارسال پیام‌های اس ام اس با استفاده از ای پی ای فراز اس ام اس فراهم می‌کند. ای پی ای فراز اس ام اس به شما امکان ارسال پیام‌های تکی اس ام اس و بررسی وضعیت تحویل پیام‌ها را می‌دهد. راهنمای استفاده مقدمه

from farazsms import FarazSms

api_key = "YOUR_API_KEY"
faraz_sms = FarazSms(api_key)

ارسال پیام

recipient_numbers = ["123456789", "987654321"]
message_content = "سلام، این یک پیام آزمایشی است."

response = faraz_sms.send_message(recipient_numbers, message_content)
print(response)

بررسی اعتبار حساب

credit_info = faraz_sms.credit()
print(credit_info)

بررسی وضعیت تحویل پیام

bulk_id = "YOUR_BULK_ID"
delivery_status = faraz_sms.Delivery_check(bulk_id)
print(delivery_status)

مستندات

API برای اطلاعات دقیق در مورد API FarazSms به مستندات رسمی API مراجعه کنید. توجه

حتماً "YOUR_API_KEY" و "YOUR_BULK_ID" را با کلید API و شناسه دسته جمعی FarazSms واقعی خود جایگزین کنید.

About

his Python module provides a simple wrapper for sending SMS messages using the FarazSms API. The FarazSms API allows you to send single SMS messages and check the delivery status of messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages