ferrero-opentext/Python-Version/.env
DJP 33860decfd Fix B1→B2 workflow - Use Final Assets folder and MASTERS_ Box folder naming
Key Changes:

PHP Interface:
 Added currentTab = 'global-masters' to select_campaign_b1
 Added get_global_master_assets action handler
 Uses findFinalAssetsFolder() (looks for '05. Final Assets')
 Shows selected campaign info
 Displays Global Master assets when found

Python B1→B2 Script:
 Use different Box folder: 349261192115 (not 348304357505)
 Pass is_global=True to get_master_assets()
 Box folder naming: MASTERS_Campaign_Name (no campaign number)
 Folder prefix: MASTERS_ instead of campaign ID

DAM Client:
 Updated get_master_assets() to accept is_global parameter
 If is_global=True: Uses find_final_assets_folder() (05. Final Assets)
 If is_global=False: Uses _find_master_assets_folder() (01. Master Assets)

Configuration:
 Added BOX_ROOT_FOLDER_B1_B2=349261192115
 Three separate Box folders now configured

B1 Workflow Differences:
- Uses '05. Final Assets' folder (not '01. Master Assets')
- Box folder: 349261192115 (not 348304357505)
- Box naming: MASTERS_NUTELLA_PLANT-BASED_LAUNCH
- No campaign number in folder name

Test Next:
1. Refresh PHP app
2. B1→B2 tab → Select NUTELLA campaign
3. Click 'Get Global Master Assets'
4. Should find assets in 05. Final Assets folder

🤖 Generated with Claude Code
2025-11-03 13:39:34 -05:00

48 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
BOX_ROOT_FOLDER_B1_B2=349261192115
# 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=
WEBHOOK_RECEIVER_PORT=5555
BOX_WEBHOOK_PRIMARY_KEY=your_box_webhook_primary_key
BOX_WEBHOOK_SECONDARY_KEY=your_box_webhook_secondary_key