Skip to content

Instantly share code, notes, and snippets.

@linkerzx
Last active October 11, 2018 19:59
Show Gist options
  • Save linkerzx/8dbf8802c06a871136edf2344495de01 to your computer and use it in GitHub Desktop.
Save linkerzx/8dbf8802c06a871136edf2344495de01 to your computer and use it in GitHub Desktop.
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