updated README.md

This commit is contained in:
Sergey
2024-08-03 09:29:47 +03:00
parent eb5058502d
commit e7796ec240
6 changed files with 99 additions and 2 deletions

25
dinect_api.py Normal file
View 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',
}