altf1be_sca_tork_easycube_api
Helpers for SCA Tork Easycube API facilitating the collection of data generated by the dispensers Built by http://www.alt-f1.be.
See https://bitbucket.org/altf1be/com_torkglobal_easycube_fm
Author: Abdelkrim BOUJRAF, http://www.alt-f1.be
Screenshot
cd web; ./run_web.sh
- open a browser
http://0.0.0.0:8000/api/dispensers/sca_tork_easycube/
Display actions required per dispenser:

Usage
- Create a .env including this parameter COM_GOOGLE_ANALYTICS_TRACKING_ID
export SCA_TORK_EASYCUBE_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export SCA_TORK_EASYCUBE_CLIENT_SECRET=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
export SCA_TORK_EASYCUBE_GRANT_TYPE=client_credentials
export SCA_TORK_EASYCUBE_SCOPE=EasyCube.External.Api
export SCA_TORK_EASYCUBE_BASE_URL=https://easycube-external-api-web-c2m2jq5zkw6rc.azurewebsites.net
- Install the pyhton packages
pip install -r requirements.txt
- load the .env in your entry point (app.py, main.py, test.py)
from dotenv import load_dotenv
load_dotenv()
- Run the code and check if the you can access to the REST API
python
import altf1be_sca_tork_easycube_api
print(dir(altf1be_sca_tork_easycube_api))
installation
dependencies
Build this package
Documentation to build a Python package
License
Copyright (c) ALT-F1 SPRL, Abdelkrim BOUJRAF. All rights reserved.
This project IS NOT open sourced BUT the source code is freely available
See LICENSE in the project root for license information.