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
// Change these settings with your Webhook URL and the options for your notification body | |
var webhookURL = "[YOUR SLACK WEBHOOK URL]"; | |
var slackNotificationBody = { | |
"text": "", | |
"attachments": [ | |
{ | |
"text": "", | |
"color":"#9C1A22" | |
} | |
] |
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
<script type="text/javascript"> | |
function yourSubmitFunction(e, $) { | |
e.preventDefault(); | |
try { | |
var formdata = $('form').serialize(); | |
$.ajax({ | |
type: "POST", | |
url: "http://cloud.mktgmtdcanada.ca/emailNewsletterSingUp", | |
data: formdata |
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
if not empty (@token) then | |
set @rows = LookupRows("Rest api authorization","AccessToken",@token) | |
set @rowCount = rowcount(@rows) | |
if @rowCount > 0 then | |
If @action=="get" and not empty (@entrycode) then | |
set @rows = LookupRows("Register","EntryCode",@entrycode) | |
set @rowCount = rowcount(@rows) | |
If @rowCount==0 then | |
output(v(@JsonNotFound)) |
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
If @action == "GetAccessToken" and not empty (@pass) and not empty (@Email)then | |
set @rows = LookupRows("Register","EmailAddress",@Email,"Pass",@pass) | |
set @rowCount = rowcount(@rows) | |
If @rowCount == 0 then | |
set @json= '{"Status":"error", "message":" the Email address or password are incorrect"}' | |
output(v(@json)) | |
Endif | |
If @rowCount > 0 then | |
set @row = row(@rows,1) |
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
If @action=="put" and not empty (@entrycode) and not empty(@Email) and not empty(@Lname) and not empty (@Name) and not empty (@phone) then | |
Set @rowsAffected = UPSERTDATA("Register",1,"EmailAddress", @Email,"EntryCode",@entrycode,"FirstName",@Name,"LastName",@Lname,"PhoneNumber",@phone) | |
If (@rowsAffected >0) then | |
set @Json= '{"status": "ok","message": "Your information was saved correctly"}' | |
output(v(@Json)) | |
Endif | |
if(@rowsAffected ==0)then | |
set @Json= '{"status": "Error","message": "Invalid EntryCode"}' |
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
%%[ | |
var @action,@entrycode,@Json,@JsonNotFound,@EmailAddress,@FristName,@LastName,@phone,@rowCount,@row,@rows | |
set @action=Requestparameter("action") | |
set @entrycode=Requestparameter("entrycode") | |
set @JsonNotFound=' {"status": "error","message": "Could not find record with entrycode" }' | |
If @action=="get" and not empty (@entrycode) then | |
set @rows = LookupRows("Register","EntryCode",@entrycode) | |
set @rowCount = rowcount(@rows) |
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
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |
<tr><td><div align="center"> | |
<table border="0" cellpadding="0" cellspacing="0" > | |
<tr> | |
<td colspan="4" > | |
<img src="http://image.S7.exacttarget.com/lib/fe9213727262047e71/m/1/piezas+gratis_pic1.JPG" border="0" alt="" style="float:left" /> | |
</td> | |
</tr> | |
<tr> |
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
<!-- before started block--><div class="content-block before-started"><div class="block-title">BEFORE YOU GET STARTED</div><div class="paragraph1 clearfix"><div class="paragraph1-logo"><img src="../../images/before_logo.png" style="max-width: 100%"/></div><div class="paragraph1-content"><span>Please consider which card is suitable | |
for your needs and be aware that the | |
interest rate and annual fee for each | |
type can vary. You can view the <a href="" class="blue">Credit Card Key Facts Sheet</a> for more | |
information about each card.</span></div></div><p>If your application is approved, a new card | |
account will be opened. Your existing card | |
account will be closed 14 days after ANZ's | |
receipt of this application, or on activation of | |
your new card(s), whichever is the sooner. You | |
will not receive a final statement on your |
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
<!-- Start RealTime Email Embed - Patents Pending --> | |
<img src="https://em.realtime.email/service/rte?kind=weather&id=1187086557&esp_uid=%%Hash_ID%%&dim0=%%Hash_ID%%"/> | |
<!-- End RealTime Email Embed - Patents Pending --> |
NewerOlder