Skip to content

Instantly share code, notes, and snippets.

@angrycider
Created March 27, 2017 22:05
Show Gist options
  • Save angrycider/ee39a7a87454201ea469108104b6f0e0 to your computer and use it in GitHub Desktop.
Save angrycider/ee39a7a87454201ea469108104b6f0e0 to your computer and use it in GitHub Desktop.
11. Create Email
//Create Email
var emailFolderID = '99633'; //Hover over or inspect the folder in the UI and grab the CID querystring parameter
var co = {
"Name": "TuneIn_201757f52c3c0dbf0",
"Subject": "Game is starting now!",
"HTMLBody": "HTML Goes Here",
"CharacterSet":"UTF-8",
"CategoryID":emailFolderID //Folder ID from Create Folder Above...Omit to create at root
};
SoapClient.create('Email',co, null, function(err, response){
if(err){
console.log(err);
}
else{
console.log(response.body.Results);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment