Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 513 Bytes

File metadata and controls

25 lines (15 loc) · 513 Bytes

Emails Mailjet

Setup emails for mailjet

from mailjet_rest import Client

api_key = ""
api_secret = ""

mailjet = Client(auth=(api_key, api_secret))

# don't specify email for first parse route

data = {"Email": "random@random.org", "Url": "https://user:password@unding.de/anymail/mailjet/inbound/"}

result = mailjet.parseroute.create(data=data)

# update already created

# result = mailjet.parseroute.update(id="random@random.org",data=data)

print(result.status_code)
print(result.json())