Skip to main content

Djangoda Eskiz.Uz API orqali SMS yuborish uchun eng mukammal paket

Project description

Easily integrate EskizUz SMS functionality into your Django application.

Installation

First, install the package using pip:

pip install django-eskiz-sms

Then, add eskiz_sms to your INSTALLED_APPS in settings.py:

INSTALLED_APPS = [
    ...
    'eskiz_sms',
]

Setup

After adding the app, run migrations to set up the necessary database tables:

python manage.py makemigrations eskiz_sms
python manage.py migrate eskiz_sms

Next, go to the Django admin panel and add your EskizUz email and API token in the EskizSMS model.

Usage

### Sending SMS

To send an SMS, you can use the send_sms method. Import it into any part of your application where you need to send an SMS:

from eskiz_sms.views import send_sms

send_sms(phone_number, message)

### Testing

To test the SMS functionality through the browser, include eskiz_sms.urls in your project’s urls.py:

from django.urls import path, include

urlpatterns = [
    ...
    path('sms/', include('eskiz_sms.urls')),
]

Visit the provided URL in your browser to send test SMS messages. For security reasons, remove this URL after testing.

SMS Log

You can view the statistics of sent SMS messages in the SMSLog model in the Django admin panel.

Support

For additional help, join our Telegram group: Telegram Support

For a detailed guide, visit: Django Eskiz SMS Documentation

License

MIT License

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

django_eskiz_sms-0.1.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

django_eskiz_sms-0.1.6-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file django_eskiz_sms-0.1.6.tar.gz.

File metadata

  • Download URL: django_eskiz_sms-0.1.6.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for django_eskiz_sms-0.1.6.tar.gz
Algorithm Hash digest
SHA256 2d3b2656b01d5bb7d04682827fa8a7e46c96163337c1166ee0dcad4e0ce4eec2
MD5 bf7ab4fc2e7fc3714b4732d918eb842d
BLAKE2b-256 dbdb10bdb10a40d928c4fd3a54cb4d1b503bffc79aa92a1e08175007339c7f3e

See more details on using hashes here.

File details

Details for the file django_eskiz_sms-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for django_eskiz_sms-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5d45efdf189da40010b70bbfc326a38a2cb6b52e967fd345e519ede5c147f942
MD5 a766380923330a0298e544dcfcc7e39b
BLAKE2b-256 246ba4c383c9a8a9c272fb9f71129d5cd113739455fb67cd6e8dc9dcf5abe9fc

See more details on using hashes here.

Supported by

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