Digiseller-API-TokenManager


NameDigiseller-API-TokenManager JSON
Version 1b1 PyPI version JSON
download
home_page
SummaryConvenient work with the Digiseller API token system
upload_time2023-06-06 17:31:27
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords api http openapi digiseller receiving token
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Digiseller Token System

**Asynchronous module.\
Made for myself, for convenient interaction with the API with the IDs of several sellers. It's more convenient to get and store the token and then call it**

This module will help you get an authentication token to work with the [Digiseller API](https://my.digiseller.com/inside/api.asp).

It will simplify obtaining a token and interacting with the Digiseller system, to use it, you need to get the seller's ID and [API Key](https://my.digiseller.com/inside/api_keys.asp).
### Example Use

    seller_id = "123"
    api_key = "ADB"
    token = await DigisellerAPIToken.digi_token(seller_id, api_key)
    print(token)

**In order to use it, all you need to do is pass the merchant ID and the API key, and the interaction token will be received in response.** \
The token lives 2 hours, considering this feature, the module saves the data and the token in the local sqlite3 database to avoid repeated unnecessary queries.
After 1.8 hours (Time to spare), the token will be updated. \
It is possible to work with several vendor IDs at once.

### Описание на русском языке

**Асинхронный модуль.\
Делался для себя, для удобного взаимодействия с API с ID нескольких продавцов. Удобнее получить и хранить токен и потом его вызывать**.

Этот модуль поможет вам получать токен аутентификации для работы с [Digiseller API](https://my.digiseller.com/inside/api.asp).

Он упростит получение токена и взаимодействие с системой Digiseller, для его использования необходимо получить ID продавца и [API Key](https://my.digiseller.com/inside/api_keys.asp).
### Пример использования

    seller_id = "123"
    api_key = "ADB"
    token = await DigisellerAPIToken.digi_token(seller_id, api_key)
    print(token)

**Для использования достаточно передать ID продавца и API ключ, в ответ будет получен токен взаимодействия.** \
Токен живет 2 часа, учитывая эту особенность, модуль сохраняет данные и токен в локальной базе данных sqlite3, чтобы избежать повторных ненужных запросов.
Через 1,8 часа (Время с запасом) токен будет обновлен. \
Возможна работа сразу с несколькими ID продавцов.

### Useful links - Полезные ссылки

⛈️ Source Code: https://github.com/Ernieleo/Digiseller-API-TokenManager \
😶‍🌫️ Digiseller API Documentation: https://my.digiseller.com/inside/api.asp

### FAQ

1. Where do I get my Seller ID? - On the home page, after logging in to my.digiseller.com, on the right side in the Contact information - "ID".
2. How to get API Key? - In the Personal Area, API Key management: [LINK](https://my.digiseller.com/inside/api_keys.asp)


1. Где получить ID Продавца? — На главной странице, после авторизации на my.digiseller.com, справа в Контактных данных - "Идентификатор".
2. Как получить API Ключ? — В ЛК, управление API Ключами: [ССЫЛКА](https://my.digiseller.com/inside/api_keys.asp)

### Notes
This module was made for myself in a different form, but needed to be reincorporated and this is its creative result. Don't kick me, I dare not call myself a programmer and I have no love for this business. The code was created with ChatGPT 3.5/4 (I got lazy myself, passed the test)

Данный модуль делался для себя в иной форме, но потребовалась реинкорнация и это её креативный итог. Не пинайте ногами, я не смею назвать себя программистом и не испытываю я любви к этому делу. Код создавался при помощи ChatGPT 3.5/4 (Мне стало лень самому, пройдена проверка)


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "Digiseller-API-TokenManager",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "api,http,openapi,digiseller,receiving token",
    "author": "",
    "author_email": "Ernieleo <v3ezhik@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a6/9d/c63f73b3a0c82be38740513e045249e261e30bfeedc7e9b0e7c3aceb5d85/Digiseller-API-TokenManager-1b1.tar.gz",
    "platform": null,
    "description": "# Digiseller Token System\r\n\r\n**Asynchronous module.\\\r\nMade for myself, for convenient interaction with the API with the IDs of several sellers. It's more convenient to get and store the token and then call it**\r\n\r\nThis module will help you get an authentication token to work with the [Digiseller API](https://my.digiseller.com/inside/api.asp).\r\n\r\nIt will simplify obtaining a token and interacting with the Digiseller system, to use it, you need to get the seller's ID and [API Key](https://my.digiseller.com/inside/api_keys.asp).\r\n### Example Use\r\n\r\n    seller_id = \"123\"\r\n    api_key = \"ADB\"\r\n    token = await DigisellerAPIToken.digi_token(seller_id, api_key)\r\n    print(token)\r\n\r\n**In order to use it, all you need to do is pass the merchant ID and the API key, and the interaction token will be received in response.** \\\r\nThe token lives 2 hours, considering this feature, the module saves the data and the token in the local sqlite3 database to avoid repeated unnecessary queries.\r\nAfter 1.8 hours (Time to spare), the token will be updated. \\\r\nIt is possible to work with several vendor IDs at once.\r\n\r\n### \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435\r\n\r\n**\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c.\\\r\n\u0414\u0435\u043b\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u0441\u0435\u0431\u044f, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 API \u0441 ID \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u043e\u0432. \u0423\u0434\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0438 \u043f\u043e\u0442\u043e\u043c \u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c**.\r\n\r\n\u042d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 [Digiseller API](https://my.digiseller.com/inside/api.asp).\r\n\r\n\u041e\u043d \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 Digiseller, \u0434\u043b\u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ID \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u0430 \u0438 [API Key](https://my.digiseller.com/inside/api_keys.asp).\r\n### \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n\r\n    seller_id = \"123\"\r\n    api_key = \"ADB\"\r\n    token = await DigisellerAPIToken.digi_token(seller_id, api_key)\r\n    print(token)\r\n\r\n**\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c ID \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u0430 \u0438 API \u043a\u043b\u044e\u0447, \u0432 \u043e\u0442\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0442\u043e\u043a\u0435\u043d \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.** \\\r\n\u0422\u043e\u043a\u0435\u043d \u0436\u0438\u0432\u0435\u0442 2 \u0447\u0430\u0441\u0430, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u044d\u0442\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0442\u043e\u043a\u0435\u043d \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 sqlite3, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0445 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.\r\n\u0427\u0435\u0440\u0435\u0437 1,8 \u0447\u0430\u0441\u0430 (\u0412\u0440\u0435\u043c\u044f \u0441 \u0437\u0430\u043f\u0430\u0441\u043e\u043c) \u0442\u043e\u043a\u0435\u043d \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d. \\\r\n\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u0440\u0430\u0437\u0443 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 ID \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u043e\u0432.\r\n\r\n### Useful links - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438\r\n\r\n\u26c8\ufe0f Source Code: https://github.com/Ernieleo/Digiseller-API-TokenManager \\\r\n\ud83d\ude36\u200d\ud83c\udf2b\ufe0f Digiseller API Documentation: https://my.digiseller.com/inside/api.asp\r\n\r\n### FAQ\r\n\r\n1. Where do I get my Seller ID? - On the home page, after logging in to my.digiseller.com, on the right side in the Contact information - \"ID\".\r\n2. How to get API Key? - In the Personal Area, API Key management: [LINK](https://my.digiseller.com/inside/api_keys.asp)\r\n\r\n\r\n1. \u0413\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ID \u041f\u0440\u043e\u0434\u0430\u0432\u0446\u0430? \u2014 \u041d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u043f\u043e\u0441\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 my.digiseller.com, \u0441\u043f\u0440\u0430\u0432\u0430 \u0432 \u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 - \"\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\".\r\n2. \u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c API \u041a\u043b\u044e\u0447? \u2014 \u0412 \u041b\u041a, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 API \u041a\u043b\u044e\u0447\u0430\u043c\u0438: [\u0421\u0421\u042b\u041b\u041a\u0410](https://my.digiseller.com/inside/api_keys.asp)\r\n\r\n### Notes\r\nThis module was made for myself in a different form, but needed to be reincorporated and this is its creative result. Don't kick me, I dare not call myself a programmer and I have no love for this business. The code was created with ChatGPT 3.5/4 (I got lazy myself, passed the test)\r\n\r\n\u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u0435\u043b\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432 \u0438\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435, \u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0440\u0435\u0438\u043d\u043a\u043e\u0440\u043d\u0430\u0446\u0438\u044f \u0438 \u044d\u0442\u043e \u0435\u0451 \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0442\u043e\u0433. \u041d\u0435 \u043f\u0438\u043d\u0430\u0439\u0442\u0435 \u043d\u043e\u0433\u0430\u043c\u0438, \u044f \u043d\u0435 \u0441\u043c\u0435\u044e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u043c \u0438 \u043d\u0435 \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e \u044f \u043b\u044e\u0431\u0432\u0438 \u043a \u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043b\u0443. \u041a\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 ChatGPT 3.5/4 (\u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u043b\u0435\u043d\u044c \u0441\u0430\u043c\u043e\u043c\u0443, \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430)\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Convenient work with the Digiseller API token system",
    "version": "1b1",
    "project_urls": {
        "Digiseller API Documentation": "https://my.digiseller.com/inside/api.asp",
        "Source Code": "https://github.com/Ernieleo/Digiseller-API-TokenManager"
    },
    "split_keywords": [
        "api",
        "http",
        "openapi",
        "digiseller",
        "receiving token"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf22778aa889e185205f305bdd8c68c3c1034de85600ae308ac6446b2215baa5",
                "md5": "bb563642ee26e2f199416b9788e54b64",
                "sha256": "6e08ec55e826521bd98c694b306f5fe8d54bd7dfea5b5b064ae3b4c4a6267f91"
            },
            "downloads": -1,
            "filename": "Digiseller_API_TokenManager-1b1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb563642ee26e2f199416b9788e54b64",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4323,
            "upload_time": "2023-06-06T17:31:26",
            "upload_time_iso_8601": "2023-06-06T17:31:26.149014Z",
            "url": "https://files.pythonhosted.org/packages/cf/22/778aa889e185205f305bdd8c68c3c1034de85600ae308ac6446b2215baa5/Digiseller_API_TokenManager-1b1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a69dc63f73b3a0c82be38740513e045249e261e30bfeedc7e9b0e7c3aceb5d85",
                "md5": "ade2aa75a9f6e25d3e8c39dfc370d210",
                "sha256": "bbdea5aca210f4d515c050e008d5ac9f55cd972fb1d8f783b1d1fc799bb7a83b"
            },
            "downloads": -1,
            "filename": "Digiseller-API-TokenManager-1b1.tar.gz",
            "has_sig": false,
            "md5_digest": "ade2aa75a9f6e25d3e8c39dfc370d210",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4574,
            "upload_time": "2023-06-06T17:31:27",
            "upload_time_iso_8601": "2023-06-06T17:31:27.835516Z",
            "url": "https://files.pythonhosted.org/packages/a6/9d/c63f73b3a0c82be38740513e045249e261e30bfeedc7e9b0e7c3aceb5d85/Digiseller-API-TokenManager-1b1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-06 17:31:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Ernieleo",
    "github_project": "Digiseller-API-TokenManager",
    "github_not_found": true,
    "lcname": "digiseller-api-tokenmanager"
}
        
Elapsed time: 0.07639s