Skip to main content

HIMOSOFT SMS API Client.

Project description

Himosoft SMS API Client

The Himosoft SMS API Client is a Python client that interacts with the Himosoft SMS API, enabling you to send SMS messages, check the status of sent messages, and retrieve transaction details. This client supports automatic retries in case of transient errors, making it reliable for production environments.

Installation

pip install himosoft-sms-api-client

Initialize

from sms_api_client import SMSApiClient

client = SMSApiClient(
    base_url="http://localhost:8000",  # Replace with your API base URL
    sms_api_key="your-api-key",  # Replace with your SMS API key
    transaction_api_key="your-transaction-api-key"  # Replace with your transaction API key (Optional)
)

Send SMS

send_response = client.send_sms("8801xxxxxxx", "Your message")
print(send_response)  # The response from the API will be printed

Example Send SMS response

{
    "status": "success",
    "message_id": "message-id"
}

Check SMS status report

report_response = client.check_sms_report("your-message-id")
print(report_response)  # The delivery report will be printed

BKash Payment Transaction status

status_response = client.bkash_transaction_status("your-transaction-code")
print(status_response)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

himosoft_sms_api_client-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

himosoft_sms_api_client-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file himosoft_sms_api_client-1.0.0.tar.gz.

File metadata

  • Download URL: himosoft_sms_api_client-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for himosoft_sms_api_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ef1b7c3268dda1abf2edb071e092e290ea4d63adacb55c9947b550782a1ea101
MD5 19d7e51197639ea9fc80d628ec81a658
BLAKE2b-256 65bb860a559335081ec8bbe81c8800e761afe6b1a9de872c68570c220c0981eb

See more details on using hashes here.

File details

Details for the file himosoft_sms_api_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for himosoft_sms_api_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b68e083736b498cff28a1a610e72882145dc0c14aa814bdf0e33cad3f0be295b
MD5 f8035893f3cd5236c1ae2278aaf60998
BLAKE2b-256 ad27d3cb260de910151a2c078152276b7123180be91bb53cc1db4d296073c83f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page