https://github.com/spirosikmd/payshop
A Flask wrapper around the Paylogic Shopping API.
https://github.com/spirosikmd/payshop
Last synced: about 2 months ago
JSON representation
A Flask wrapper around the Paylogic Shopping API.
- Host: GitHub
- URL: https://github.com/spirosikmd/payshop
- Owner: spirosikmd
- License: mit
- Created: 2014-10-03T19:33:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T18:15:22.000Z (almost 6 years ago)
- Last Synced: 2025-01-13T04:27:40.892Z (4 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
payshop
=======A Flask wrapper around the Paylogic Shopping API.
The main reason for using this wrapper is that Paylogic Shopping API does not provide native support for JavaScript
clients. So to avoid including the `API_KEY` and `API_SECRET` in the client, we encapsulate them in this app.Getting started
---------------
Create a virtual environment and install the requirements.```bash
> virtualenv env
> source env/bin/activate
> pip install -r requirements.txt
```Create a file (e.g. `privates.py`) which will contain the `API_KEY` and `API_SECRET` with which you can access the
Paylogic Shopping API. Optionally, you can include the `DEBUG` flag. The contents of the file should look like this:```
API_KEY = ''
API_SECRET = ''
DEBUG = False
```Next create an env variable with the name `PAYSHOP_SETTINGS` that will point to this file. We use this env variable during the configuration of the `app`.
```bash
export PAYSHOP_SETTINGS=~/path/to/privates.py
```And finally run the app from the root directory.
```bash
python run.py
```