You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guillaume Badi edited this page Oct 1, 2015
·
1 revision
Setup a Mailjet Client
export MJ_APIKEY_PUBLIC='your api key'export MJ_APIKEY_PRIVATE='your api secret'
# import the mailjet wrapperfrommailjetimportClientimportos# Get your environment Mailjet keysAPI_KEY=os.environ['MJ_APIKEY_PUBLIC']
API_SECRET=os.environ['MJ_APIKEY_PRIVATE']
mailjet=Client(auth=(API_KEY, API_SECRET))