org.openbravo.kikobar.banqup/config-sample.py

26 lines
1 KiB
Python
Raw Normal View History

import base64
2023-06-24 07:42:19 +00:00
CACHE = {}
2023-06-21 12:19:08 +00:00
# Openbravo API parameters
ob_api_url = "http://[your-openbravo-domain]/openbravo/org.openbravo.service.json.jsonrest/"
# Keep only one of the 2 sections below and comment out the other:
# 1) you may enter the Openbravo user and password
ob_user = 'your-ob-user'
ob_pass = 'your-ob-password'
userpass_b64 = base64.b64encode((ob_user+':'+ob_pass).encode('ascii')).decode('ascii')
# 2) you may enter the user:password base64 encoded
#userpass_b64 = "your-ob-user:your-ob-password-base64-encoded"
# Banqup API parameters
2023-06-24 16:51:24 +00:00
banqup_client_id = "73223"
banqup_platform_id = 15
2023-06-27 11:29:41 +00:00
gst_rate = "8"
2023-06-21 16:51:13 +00:00
bq_client_id = "your-client-id-here"
bq_client_secret = "your-secret-here"
2023-06-24 16:51:24 +00:00
bq_base_url = "https://v4-api.platform.eu.banqup.com/v4"
2023-06-21 16:51:13 +00:00
bq_auth_url = "https://iam.unifiedpost.com/auth/realms/upg-dev-portal/protocol/openid-connect/auth"
bq_access_token_url = "https://iam.unifiedpost.com/auth/realms/upg-dev-portal/protocol/openid-connect/token"
bq_redirect_uri = "https://v4-api.platform.eu.banqup.com/oauth2-redirect.html"