This file contains hidden or 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 auth(clientId: str, | |
| clientSecret: str | |
| ) -> requests.Response: | |
| end_point = "https://auth.exacttargetapis.com/v1" + "/requestToken" | |
| headers = {'Content-type': 'application/json'} | |
| payload = { | |
| "clientId": clientId, | |
| "clientSecret": clientSecret, | |
| "accessType": "offline" |
This file contains hidden or 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 post_to_data_extension( | |
| accessToken: str, | |
| dataExtensionKey: str, | |
| items: list | |
| ) -> requests.Response: | |
| host = "https://www.exacttargetapis.com" | |
| end_point = "/hub/v1/dataevents/key:{key}/rowset" | |
| url = host + end_point.format(key=dataExtensionKey) | |
This file contains hidden or 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 post_to_trigger_send( | |
| accessToken: str, | |
| triggeredSendDefinitionKey: str, | |
| SubscriberKey: str, | |
| From: dict, | |
| Attributes: dict | |
| ) -> requests.Response: | |
| host = "https://www.exacttargetapis.com" | |
| end_point = "/messaging/v1/messageDefinitionSends/key:{triggeredSendDefinitionKey}/send" |
This file contains hidden or 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) |
This file contains hidden or 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
| { | |
| "accessToken":"1ZbHNgf4mGDYV22D82x3WvZY", | |
| "expiresIn":3479, | |
| "refreshToken":"5ZbTNgf3mGV2V22D82x3WvVY" | |
| } |
This file contains hidden or 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
| { | |
| "deliveryTime":"2018-07-09T16:40:33.69", | |
| "id":"2dzf2a6c-b833-e811-a2cb-1401fc8c5d2d", | |
| "messageId":"c222dcpc-j40d-423l-8125-79b296fh69ad", | |
| "status":"Sent", | |
| "to":{ | |
| "address":"[email protected]", | |
| "id":12345, | |
| "key":"[email protected]" | |
| } |
This file contains hidden or 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
| { | |
| "requestId":"c222dcpc-j40d-423l-8125-79b296fh69ad", | |
| "responses":[ | |
| { | |
| "recipientSendId":"c222dcpc-j40d-423l-8125-79b296fh69ad", | |
| "hasErrors":false, | |
| "messages":["Queued"] | |
| } | |
| ] | |
| } |
This file contains hidden or 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
| post_to_trigger_send( | |
| myaccessKey, | |
| "test_email_send", | |
| "[email protected]", | |
| { | |
| "Address": "[email protected]", | |
| "Name": "Julien@Original Sender" | |
| } | |
| , | |
| { |
This file contains hidden or 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
| ga('create', 'UA-123-01', 'auto'); |
This file contains hidden or 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
| var checkoutType; | |
| checkoutType="Guest"; | |
| if(Checkout.data.user.email != null){ | |
| checkoutType="Loggedin"; | |
| } |
OlderNewer