dynamically calculate data center

This commit is contained in:
Kiara Grouwstra 2023-11-12 00:17:11 +01:00
parent f82d9a6375
commit 944d477eb6
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
source credentials.sh
user="bij1:${MAILCHIMP_API_KEY}"
dc='us16'
dc=$(echo $MAILCHIMP_API_KEY | sed 's/.*-//g')
base="https://${dc}.api.mailchimp.com/3.0/"
# get lists