DailyBasket support integration (Salesforce + DynamoDB)
Project description
dailybasket-support-mithilesh
Support code for the DailyBasket project.
This library contains:
SalesforceRefreshClient– helper for OAuth refresh and REST callsSupportBridge– creates Salesforce Cases and updates theDailyBasketItemsDynamoDB table.
Configuration
This library is configured using environment variables. Typical values are:
AWS / DynamoDB
AWS_REGION– AWS region for DynamoDB (default:us-east-1)ITEMS_TABLE– DynamoDB table name for orders (default:DailyBasketItems)
If you do not set these variables, the defaults above are used.
Salesforce
The Salesforce integration uses OAuth 2.0 refresh token flow. You must provide:
SF_CLIENT_ID– Salesforce connected app client IDSF_CLIENT_SECRET– Salesforce connected app client secretSF_REFRESH_TOKEN– long-lived refresh token issued for the integration user
Optional variables:
SF_LOGIN_BASE_URL– Salesforce login base URL
Default:https://login.salesforce.comSF_API_VERSION– Salesforce REST API version
Default:v61.0
Example (Linux / macOS)
export AWS_REGION="us-east-1"
export ITEMS_TABLE="DailyBasketItems"
export SF_CLIENT_ID="your-salesforce-client-id"
export SF_CLIENT_SECRET="your-salesforce-client-secret"
export SF_REFRESH_TOKEN="your-salesforce-refresh-token"
export SF_LOGIN_BASE_URL="https://login.salesforce.com"
export SF_API_VERSION="v61.0"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dailybasket_support_mithilesh-0.0.2.tar.gz.
File metadata
- Download URL: dailybasket_support_mithilesh-0.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c99887cc728b3f5e56f1e02718d6f0776af7702e11b93f3672ed03f635e1ab72
|
|
| MD5 |
114d223e8e1f9405cd6ecd98a10baf77
|
|
| BLAKE2b-256 |
2f95f246a37f15162cfae3bf80e6a559d4ef44caeb32d6311cbd7488385e6dc5
|
File details
Details for the file dailybasket_support_mithilesh-0.0.2-py3-none-any.whl.
File metadata
- Download URL: dailybasket_support_mithilesh-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b65d525441bdf1c1a699d47cfffa719bdd4bcfb8fc02b508d0c078d431f4aa31
|
|
| MD5 |
158cb2ddc66d4d9fb24fa67ef52a1d9a
|
|
| BLAKE2b-256 |
db671b49b58f21dc0c6ab31b645cf0c518dab9f9e700a2c1e9ea7049c76a8855
|