Skip to main content

pyAllegro is a framework, that provides a simple way to use Allegro Web API and Rest AP.

Project description

# allegro-api

pyAllegro is a framework, that provides a simple way to use Allegro [Web API](https://allegro.pl/webapi/general.php) and [Rest AP](https://developer.allegro.pl/about/). You don't need to know how RESTful, SOAP or oauth 2.0 works.
<br/>
As for now it's prepared for getting data from allegro - not for managing your account or bidding.


### Get started:

1. Go to https://apps.developer.allegro.pl/ and register your app. **You need to setup redirecion url to ```http://localhost:8000```** - it will be your local server that recive your autorization data (oauth 2.0),
2. Generate your app password [here](https://allegro.pl/myaccount/Settings/security_settings.php/applicationPasswords),
3. Install pyAllegro with ```pip install pyAllegro```
4. Import ```from pyAllegro.api import AllegroRestApi, AllegroWebApi```
5. Setup credentials that you recived from allegro (by default it's saved here: '/Users/{user}/.allegroApiConfig'):
```
WebApi = AllegroWebApi()

WebApi.credentials_set(
appName='<credentials from allegro>',
clientId='<credentials from allegro>',
clientSecred='<credentials from allegro>',
userLogin='<allegro login>',
redirectUrl='<redirect uri - the same you provided during app registration on allegro >',
appPassword='<app password>'
)

RestApi = AllegroRestApi()

RestApi.credentials_set(
appName='<credentials from allegro>',
clientId='<credentials from allegro>',
clientSecred='<credentials from allegro>',
redirectUrl='http://localhost:8000'
)
```


### How to use pyAllegro:
* [WebApi](https://github.com/xSzpo/pyAllegro/blob/master/tutorial_WebApi.ipynb)
* [RestApi](https://github.com/xSzpo/pyAllegro/blob/master/tutorial_RestApi.ipynb)


### Allegro api documentation:
* [Rest Api](https://developer.allegro.pl/documentation/)
* [Web Api](https://allegro.pl/webapi/documentation.php)

### References
Thanks to:
* https://cwsi.pl/ecommerce/allegro/podstawy-obslugi-web-api-allegro-pl-web-services-i-modul-suds-jurko-w-pythonie
* https://cwsi.pl/ecommerce/allegro/allegro-pl-rest-api-w-pythonie-wprowadzenie/


### To do
- [ ] publish package on pypi
- [ ] RestApi put
- [ ] RestApi delete
- [ ] restApi post

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyAllegro-0.0.3.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file pyAllegro-0.0.3.tar.gz.

File metadata

  • Download URL: pyAllegro-0.0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for pyAllegro-0.0.3.tar.gz
Algorithm Hash digest
SHA256 31c88f3cddc73c26319fd9b3af939f29965a43cc48582512294082b490f535fe
MD5 8180f96408af9e7d0a42a7253c7f15b9
BLAKE2b-256 4b3816aba8b73755001e4850e7ee1d41947b1070100c81bc9705b221b10d4c6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page