https://github.com/rajab-murod/playmobile
integration playmobile.uz and django
https://github.com/rajab-murod/playmobile
django djangorestframework playmobileuz python sms-sender
Last synced: 3 months ago
JSON representation
integration playmobile.uz and django
- Host: GitHub
- URL: https://github.com/rajab-murod/playmobile
- Owner: rajab-murod
- License: mit
- Created: 2020-10-15T11:26:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-16T04:48:48.000Z (over 4 years ago)
- Last Synced: 2025-04-15T01:13:40.387Z (3 months ago)
- Topics: django, djangorestframework, playmobileuz, python, sms-sender
- Language: Python
- Homepage: https://playmobile.uz/instr/Broker_API_18.11.2019.pdf
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Introduction
this package helps to integrate [playmobile.uz](http://playmobile.uz) and your application is built on [django](https://www.djangoproject.com/).
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install.
```bash
pip install requests
pip install djangorestframework
pip install playmobile
```## Usage
```python
# settings.pyINSTALLED_APPS = [
...
'playmobile',
'rest_framework',
...
]PLAY_MOBILE_SETTINGS = {
'API_URL': '',
'LOGIN': '',
'PASSWORD': '',
'PREFIX': '', # example : abc - Organization name. no more 20 characters.
'ORIGINATOR': '' # if this field is empty default 3700 or set your originator name
}
```
```python
# urls.pyfrom django.urls import path
from playmobile.views import PlayMobileApiViewurlpatterns = [
path('sender/', PlayMobileApiView.as_view(), name='send')
]
```
## Documentation
- playmobile.uz [docs](https://playmobile.uz/instr/Broker_API_18.11.2019.pdf)
- django-rest-framework [docs](https://www.django-rest-framework.org/)