XoxoDay


NameXoxoDay JSON
Version 0.0.31 PyPI version JSON
download
home_pagehttps://github.com/blueromans/XoxoDay.git
SummaryXoxoDay Api Client For Python
upload_time2023-07-28 07:51:10
maintainer
docs_urlNone
authorYaşar Özyurt
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://img.shields.io/pypi/v/XoxoDay.svg)](https://pypi.python.org/pypi/XoxoDay)

# XoxoDay Api Client Python PyPackage

XoxoDay Api Client is a Python library to access services quickly.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install XoxoDay
```
## Environment Variables

```bash
XOXODAY_ENV = 'dev|prod'
XOXODAY_ACCESS_TOKEN = 'access_token'
XOXODAY_REFRESH_TOKEN = 'refresh_token'
XOXODAY_CLIENT_ID = 'client_id'
XOXODAY_CLIENT_SECRET = 'client_secret'
```
### Note
If you don't want to set this variables from global environment you can pass them to class.
You can see usage below
## Usage

```python
from XoxoDay import XoxoDayService

kwargs = {
    # you can also set XoxoDay environment from environment.
    'environment': 'dev|prod',  # Default value : dev
    'access_token': 'XoxoDay Access Token',  # Default value : None
    'refresh_token': 'XoxoDay Refresh Token',  # Default value : None
    'client_id': 'XoxoDay Client Id',  # Default value : None
    'client_secret': 'XoxoDay Client Secret',  # Default value : None
}
# Initialize client with
XoxoDay_service = XoxoDayService()
# or XoxoDay_service = XoxoDayService(**kwargs)

# Get Vouchers
#filters = [{"key": "productName", "value": "Paypal International"}]
#includeProducts= "productId"
funding_source = XoxoDay_service.getVouchers(filters=None, includeProducts=None)

# Place Order
order = XoxoDay_service.placeOrder(email="xoxo@mail.com",  productId='productId', denomination='amount', poNumber="Unique Number for Order")

```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

[MIT](https://choosealicense.com/licenses/mit/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/blueromans/XoxoDay.git",
    "name": "XoxoDay",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Ya\u015far \u00d6zyurt",
    "author_email": "blueromans@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b5/4a/267ec5bbfa0bf9f91971b5a81ee8a984d030b19f833efa8ee7be6ae812d4/XoxoDay-0.0.31.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://img.shields.io/pypi/v/XoxoDay.svg)](https://pypi.python.org/pypi/XoxoDay)\n\n# XoxoDay Api Client Python PyPackage\n\nXoxoDay Api Client is a Python library to access services quickly.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.\n\n```bash\npip install XoxoDay\n```\n## Environment Variables\n\n```bash\nXOXODAY_ENV = 'dev|prod'\nXOXODAY_ACCESS_TOKEN = 'access_token'\nXOXODAY_REFRESH_TOKEN = 'refresh_token'\nXOXODAY_CLIENT_ID = 'client_id'\nXOXODAY_CLIENT_SECRET = 'client_secret'\n```\n### Note\nIf you don't want to set this variables from global environment you can pass them to class.\nYou can see usage below\n## Usage\n\n```python\nfrom XoxoDay import XoxoDayService\n\nkwargs = {\n    # you can also set XoxoDay environment from environment.\n    'environment': 'dev|prod',  # Default value : dev\n    'access_token': 'XoxoDay Access Token',  # Default value : None\n    'refresh_token': 'XoxoDay Refresh Token',  # Default value : None\n    'client_id': 'XoxoDay Client Id',  # Default value : None\n    'client_secret': 'XoxoDay Client Secret',  # Default value : None\n}\n# Initialize client with\nXoxoDay_service = XoxoDayService()\n# or XoxoDay_service = XoxoDayService(**kwargs)\n\n# Get Vouchers\n#filters = [{\"key\": \"productName\", \"value\": \"Paypal International\"}]\n#includeProducts= \"productId\"\nfunding_source = XoxoDay_service.getVouchers(filters=None, includeProducts=None)\n\n# Place Order\norder = XoxoDay_service.placeOrder(email=\"xoxo@mail.com\",  productId='productId', denomination='amount', poNumber=\"Unique Number for Order\")\n\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "XoxoDay Api Client For Python",
    "version": "0.0.31",
    "project_urls": {
        "Bug Tracker": "https://github.com/blueromans/XoxoDay/issues",
        "Homepage": "https://github.com/blueromans/XoxoDay.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d6639e8f9afbc55865021dddbb29568fc53ae4c0630425c06c700d92bac5b250",
                "md5": "c09deb25904872d8fd63026e0c286a21",
                "sha256": "99ec5ea5859d0c97edb2dd79b050043963bc6b2fc6bf14adeb155129e9a89294"
            },
            "downloads": -1,
            "filename": "XoxoDay-0.0.31-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c09deb25904872d8fd63026e0c286a21",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8167,
            "upload_time": "2023-07-28T07:51:09",
            "upload_time_iso_8601": "2023-07-28T07:51:09.110499Z",
            "url": "https://files.pythonhosted.org/packages/d6/63/9e8f9afbc55865021dddbb29568fc53ae4c0630425c06c700d92bac5b250/XoxoDay-0.0.31-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b54a267ec5bbfa0bf9f91971b5a81ee8a984d030b19f833efa8ee7be6ae812d4",
                "md5": "c3ecabe0369b1c3ee8f02e6164459632",
                "sha256": "496cd25b20e2687396e560c41f2898de0397ebb2efd277c06b049f8615eb3e99"
            },
            "downloads": -1,
            "filename": "XoxoDay-0.0.31.tar.gz",
            "has_sig": false,
            "md5_digest": "c3ecabe0369b1c3ee8f02e6164459632",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6909,
            "upload_time": "2023-07-28T07:51:10",
            "upload_time_iso_8601": "2023-07-28T07:51:10.259693Z",
            "url": "https://files.pythonhosted.org/packages/b5/4a/267ec5bbfa0bf9f91971b5a81ee8a984d030b19f833efa8ee7be6ae812d4/XoxoDay-0.0.31.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-28 07:51:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "blueromans",
    "github_project": "XoxoDay",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "xoxoday"
}
        
Elapsed time: 0.09118s