Skip to main content

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 calls
  • SupportBridge – creates Salesforce Cases and updates the DailyBasketItems DynamoDB 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 ID
  • SF_CLIENT_SECRET – Salesforce connected app client secret
  • SF_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.com
  • SF_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


Download files

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

Source Distribution

dailybasket_support_mithilesh-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dailybasket_support_mithilesh-0.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file dailybasket_support_mithilesh-0.0.2.tar.gz.

File metadata

File hashes

Hashes for dailybasket_support_mithilesh-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c99887cc728b3f5e56f1e02718d6f0776af7702e11b93f3672ed03f635e1ab72
MD5 114d223e8e1f9405cd6ecd98a10baf77
BLAKE2b-256 2f95f246a37f15162cfae3bf80e6a559d4ef44caeb32d6311cbd7488385e6dc5

See more details on using hashes here.

File details

Details for the file dailybasket_support_mithilesh-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dailybasket_support_mithilesh-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b65d525441bdf1c1a699d47cfffa719bdd4bcfb8fc02b508d0c078d431f4aa31
MD5 158cb2ddc66d4d9fb24fa67ef52a1d9a
BLAKE2b-256 db671b49b58f21dc0c6ab31b645cf0c518dab9f9e700a2c1e9ea7049c76a8855

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