Created
March 27, 2017 22:05
-
-
Save angrycider/ee39a7a87454201ea469108104b6f0e0 to your computer and use it in GitHub Desktop.
11. Create Email
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
//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