This package helps to integrate click.uz and your application is built on django.
Use the package manager pip to install.
pip install requests
pip install djangorestframework
pip install clickme
# settings.py
INSTALLED_APPS = [
...
'clickme',
'rest_framework',
...
]
CLICKME_SETTINGS = {
'ENDPOINT':'https://api.click.uz/v2/merchant/',
'MERCHANT_ID':'',
'SERVICE_ID':'',
'MERCHANT_USER_ID':'',
'SECRET_KEY':'',
}
# urls.py
urlpatterns = [
...
path('api/clickme/',include('clickme.urls'))
]
python manage.py migrate
python manage.py runserver
So now we have new API endpoint, which is /api/clickme/
.
- docs.click.uz
- django-rest-framework docs