Configuration Updates: 1. Separate Box folder IDs in .env - BOX_ROOT_FOLDER_A1_A2=348304357505 (master asset downloads) - BOX_ROOT_FOLDER_A2_A3=348526703108 (agency uploads to process) 2. Real webhook URL configured - Make.com: https://hook.us1.make.celonis.com/3f9ztwl8qnljufo0l65utfv5wvvnt9m5 - Auth type: none (Make.com doesn't require auth) 3. BoxClient enhanced - Accepts optional root_folder_id parameter - Defaults to root_folder_a1_a2 from config - Logs which folder is being used - A2→A3 can use different folder 4. Notifier auth handling - Supports: bearer, basic, none - Skips auth headers if type=none Test Results - COMPLETE SUCCESS: ✅ A1→A2 uploads to correct folder (348304357505) ✅ Status updated A1 → A2 ✅ Webhook sent successfully to Make.com ✅ Email sent successfully via SMTP ✅ All 3 master assets processed ✅ Campaign completed Folder Structure: - 348304357505: Master assets with tracking IDs (A1→A2) - 348526703108: Agency processed files (A2→A3 input) Python automation COMPLETE, TESTED, and WORKING! 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
# Ferrero Automation Environment Variables
|
|
|
|
# Environment (staging or production)
|
|
ENV=staging
|
|
|
|
# DAM Credentials
|
|
DAM_BASE_URL=https://ppr.dam.ferrero.com/otmmapi
|
|
DAM_AUTH_URL=https://ppr.dam.ferrero.com/otdsws/oauth2/token
|
|
DAM_CLIENT_ID=otds-OLV
|
|
DAM_CLIENT_SECRET=hs28LZ9ZzQ5I9rlW3P7Wwyw85oOatlC1
|
|
|
|
# Box Credentials
|
|
BOX_CLIENT_ID=l2atwxxq4xna7phcjr2uifm4mbah69qp
|
|
BOX_CLIENT_SECRET=6XcuCQ6akpk9daE0UHaGSv3mSxWaER4l
|
|
BOX_JWT_KEY_ID=n1izyn3l
|
|
BOX_PASSPHRASE=971585f5fd6171428c14a7c8899af5ab
|
|
BOX_ENTERPRISE_ID=43984435
|
|
|
|
# Box Folder Configuration
|
|
BOX_ROOT_FOLDER_A1_A2=348304357505
|
|
BOX_ROOT_FOLDER_A2_A3=348526703108
|
|
|
|
# Database
|
|
DB_HOST=localhost
|
|
DB_PORT=5433
|
|
DB_USER=ferrero_user
|
|
DB_PASSWORD=ferrero_pass_2025
|
|
|
|
# Mailgun / SMTP (for email notifications)
|
|
SMTP_SERVER=smtp.mailgun.org
|
|
SMTP_PORT=587
|
|
SMTP_USER=twist@mail.dev.oliver.solutions
|
|
SMTP_PASSWORD=102115e9f3b9d7332d0cd1d4329bc0d4-77751bfc-ca066b71
|
|
SENDER_EMAIL=TWIST-UK-SERVER@oliver.agency
|
|
ERROR_EMAIL=daveporter@oliver.agency
|
|
REPORT_EMAILS=daveporter@oliver.agency
|
|
|
|
# Mailgun API (alternative to SMTP)
|
|
MAILGUN_API_KEY=your_mailgun_api_key_here
|
|
MAILGUN_DOMAIN=mail.dev.oliver.solutions
|
|
|
|
# Webhook Configuration
|
|
CAMPAIGN_STATUS_WEBHOOK_URL=https://hook.us1.make.celonis.com/3f9ztwl8qnljufo0l65utfv5wvvnt9m5
|
|
WEBHOOK_AUTH_TOKEN=
|
|
BOX_WEBHOOK_PRIMARY_KEY=your_box_webhook_primary_key
|
|
BOX_WEBHOOK_SECONDARY_KEY=your_box_webhook_secondary_key
|