Last active
October 11, 2018 19:59
-
-
Save linkerzx/8dbf8802c06a871136edf2344495de01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_email_delivery_status( | |
accessToken: str, | |
key: str, | |
RecipientSendId: str | |
) -> requests.Response: | |
host = "https://www.exacttargetapis.com" | |
end_point = "/messaging/v1/messageDefinitionSends/key:{key}/deliveryRecords/{RecipientSendId}" | |
url = host + end_point.format(key=key,RecipientSendId=RecipientSendId) | |
headers = { | |
"Content-Type": "application/json", | |
"Authorization": "Bearer %s" % accessToken | |
} | |
req = requests.get( | |
url, | |
headers=headers | |
) | |
return req |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment