mirror of
https://git.auk.su/Dinect/bonus-import-tools.git
synced 2025-12-28 18:10:01 +00:00
updated README.md
This commit is contained in:
25
dinect_api.py
Normal file
25
dinect_api.py
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
# __author__ = 'szhdanoff@gmail.com'
|
||||
import os
|
||||
import json
|
||||
import httpx
|
||||
# local imports
|
||||
import app
|
||||
|
||||
app_token = app.APP_TOKEN
|
||||
pos_token = app.POS_TOKEN
|
||||
merchant_id = app.MERCHANT_ID
|
||||
|
||||
url = 'https://api.dinect.ru/v1/'
|
||||
|
||||
HEADERS = {
|
||||
'Authorization': f'{app_token}',
|
||||
'DM-Authorization': f'{pos_token}',
|
||||
'User-Agent': 'bonus-import-tools-2024',
|
||||
'Accept': 'application/json',
|
||||
'Accept-Language': 'ru,ru-RU;q=0.8,en-gb;q=0.5,en;q=0.3',
|
||||
'Accept-Charset': 'utf-8',
|
||||
'Connection': 'close',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
}
|
||||
Reference in New Issue
Block a user