/python-kolonial

Python wrapper for the Kolonial.no API

Primary LanguagePythonMIT LicenseMIT

python-kolonial

Python wrapper for the Kolonial.no API

Installation

Using Python >= 3.6:

$ pip install git+https://github.com/frefrik/python-kolonial.git

Example usage

from kolonial import Kolonial

USERNAME = 'your@email'
PASSWORD = 'yourPassword'
USER_AGENT = 'yourUserAgent'
TOKEN = 'yourToken'

# Authenticate using Kolonial account credentials and useragent/token
api = Kolonial(USERNAME, PASSWORD, USER_AGENT, TOKEN)

# Search products
search = api.search('melkesjokolade')

# Get product info
product_info = api.product('269')

# View cart
cart = api.cart()