Metadata-Version: 2.1
Name: playmobile
Version: 1.0
Summary: playmobile
Home-page: https://github.com/rajab-murod/playmobile
Author: rajab-murod
Author-email: rajab.murod1995@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: django
Requires-Dist: djangorestframework

## 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.py

INSTALLED_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.py 

from django.urls import path
from playmobile.views import PlayMobileApiView

urlpatterns = [
    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/)


