Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 979 Bytes

README.md

File metadata and controls

54 lines (40 loc) · 979 Bytes

Introduction

This package helps to integrate click.uz and your application is built on django.

Installation

Use the package manager pip to install.

pip install requests
pip install djangorestframework
pip install clickme

Usage

# 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'))
]

Get started

python manage.py migrate
python manage.py runserver

So now we have new API endpoint, which is /api/clickme/.

Documentation