Introduction
this package helps to integrate playmobile.uz and your application is built on django.
Installation
Use the package manager pip to install.
pip install requests
pip install djangorestframework
pip install playmobile
Usage
# 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
}
# urls.py
from django.urls import path
from playmobile.views import PlayMobileApiView
urlpatterns = [
path('sender/', PlayMobileApiView.as_view(), name='send')
]