mattes-allegro-pl

Python client for Allegro.pl API


License
MIT
Install
pip install mattes-allegro-pl==0.9.1

Documentation

Python client for Allegro.pl API

https://travis-ci.com/mattesilver/allegro-pl.svg?branch=master

Supports both Rest and SOAP APIs

Usage:

import allegro_pl
cs = ClientCodeStore('CLIENT ID','CLIENT SECRET')
ts = TokenStore('ACCESS TOKEN','REFRESH TOKEN)

auth = ClientCredentialsAuth(cs, ts)
allegro = allegro_pl.Allegro(auth)

rest_service = allegro.rest_service()

categories = rest_service.get_categories(cat_id)

# access to soap service
soap_service = allegro.soap_service()

# direct access to rest and soap clients:
rest_service = allegro.rest_client()
soap_client = allegro.soap_client()