Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rachid Mamai MamaiRachid

🏠
Working from home
  • Paris
View GitHub Profile
View Request Payload to Automation Studio REST API beta automations notifications endpoint.json
{
"programId": "TnJZZGdzNjVjRW1zX0lhVjhrNkxPxxxxxx",
"workers": [
{
"body": "",
"channelType": "1",
"programId": "TnJZZGdzNjVjRW1zX0lhVjhrNkxPxxxxxx",
"definition": "rachid.mamai@xxxx.com",
"notificationType": "Complete"
},
View REST API call to beta Automation Studio endpoint
https://mc.s50.exacttarget.com/rest/beta/automations/notifications/AUTOMATION_ID/
View Correct SOAP Request to create an automation along with email notifications
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<fueloauth xmlns="http://exacttarget.com">{{access_token}}</fueloauth>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<Objects xsi:type="Automation">
<Client>
View Sample SOAP Request to create an automation along with email notifications.xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password>password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
@MamaiRachid
MamaiRachid / gist:e3eb5b9d3da85695402a383b16af0b7c
Created Nov 25, 2019
Get journey's history by filtering via DefinitionID - Endpoint
View gist:e3eb5b9d3da85695402a383b16af0b7c
POST /interaction/v1/interactions/journeyhistory/search
@MamaiRachid
MamaiRachid / gist:862e700195ec0eff9b960c4196833b2e
Created Nov 25, 2019
Get Journey’s Definition ID - Endpoint
View gist:862e700195ec0eff9b960c4196833b2e
GET interaction/v1/interactions/?name=JOURNEY_NAME
View gist:af4218679598546ffcf05fc4fca4ae4d
{
"grant_type": "client_credentials",
"client_id": "85z0pydo1ykxxxxxxxxxxxx",
"client_secret": "jQ1o2JmRvxxxxxxxxxxxx",
"scope": "journeys_read list_and_subscribers_read",
"account_id": "5000xxxxx"
}
@MamaiRachid
MamaiRachid / gist:014f3a474c63c469942b402f8c0023ef
Created Nov 25, 2019
/interaction/v1/interactions/journeyhistory/search Payload
View gist:014f3a474c63c469942b402f8c0023ef
{
"definitionIds": [
"06d6f3f6-4532-4fb3-908c-xxxxxxxxxxxx"
],
"start": "2019-10-23T12:29:11.882Z",
"end": null,
"extras": "all"
}
You can’t perform that action at this time.