Hi sabineg26801730,I wrote this and have used it successfully in Python
3:# Import packagesimport osimport base64 as base64import requests as
requests# Load your aam credentials (must be aam credentials, not
marketing cloud credentials)# credentials include clientID,
clientSecret, username, passwordaam_credentials =
json.load(open('aam_credentials.json', 'r'))# Get AAM API Token. def
getToken(clientID,clientSecret,username,password): oauth_request =
"https://api.demdex.com/oauth/token" combi = c...