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
// overwrite whatever value is in a field | |
lead.program_of_interest = "Nursing Degree"; | |
// define a function, "isBlank()" | |
function isBlank(val) { | |
return !val || val == ''; | |
} | |
// define a function, "striphashcomma(str)" | |
function striphashcomma(str){ | |
return (str + '').replace(/([#]|[,]|[\?]|[\$]|[\&]|[\@]|[\'])/g, ""); |
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
ssh-rsa | |
AAAAB3NzaC1yc2EAAAABIwAAAQEAx/gbvzW9JE1iv42l+a/AAdyq0GnLw7alYMTT2W4uPnrY6 | |
A2CF5E3VlT3mTHwCf5JiHnADyfNFHrHWZGpKdDgZScg13Tz3WK2hva6pU5agkXGFj4IrgS0Gv | |
FCbkZrRRitI53FWdTsgtQd27c+HRFyM8kq4e47mCAI4d7eZnHkO0na9ib/cgnio1i4UwHubUf | |
tmTzt0AfAK4yHH42BhaX7hgOTzaY6rXPhhFscTPY+URrWA0IpU/9QzBOhs3IrTb9JksnKaJED | |
E3FBNtzu3CkPjK2aXgkVYznxP0PsDH+afs21CeK6ST46PXfPsrh+ee4K9GPwoN7BSOIb3lYoX | |
[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
ssh-rsa | |
AAAAB3NzaC1yc2EAAAABIwAAAQEAx/gbvzW9JE1iv42l+a/AAdyq0GnLw7alYMTT2W4uPnrY6 | |
A2CF5E3VlT3mTHwCf5JiHnADyfNFHrHWZGpKdDgZScg13Tz3WK2hva6pU5agkXGFj4IrgS0Gv | |
FCbkZrRRitI53FWdTsgtQd27c+HRFyM8kq4e47mCAI4d7eZnHkO0na9ib/cgnio1i4UwHubUf | |
tmTzt0AfAK4yHH42BhaX7hgOTzaY6rXPhhFscTPY+URrWA0IpU/9QzBOhs3IrTb9JksnKaJED | |
E3FBNtzu3CkPjK2aXgkVYznxP0PsDH+afs21CeK6ST46PXfPsrh+ee4K9GPwoN7BSOIb3lYoX | |
[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
ssh-rsa | |
AAAAB3NzaC1yc2EAAAABIwAAAQEAx/gbvzW9JE1iv42l+a/AAdyq0GnLw7alYMTT2W4uPnrY6A2CF5E3Vl | |
T3mTHwCf5JiHnADyfNFHrHWZGpKdDgZScg13Tz3WK2hva6pU5agkXGFj4IrgS0GvFCbkZrRRitI53FWdTs | |
gtQd27c+HRFyM8kq4e47mCAI4d7eZnHkO0na9ib/cgnio1i4UwHubUftmTzt0AfAK4yHH42BhaX7hgOTza | |
Y6rXPhhFscTPY+URrWA0IpU/9QzBOhs3IrTb9JksnKaJEDE3FBNtzu3CkPjK2aXgkVYznxP0PsDH+afs21 | |
CeK6ST46PXfPsrh+ee4K9GPwoN7BSOIb3lYoXy9GIw==production@www.batchrobot.com |
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 opt = String(lead.optional_field); | |
var len = opt.length; | |
if(len > 0) { | |
// etc. | |
} |
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
if (lead.program_of_interest == "EMS") { | |
var level = ["College Bachelor's", "College Master's", "College Doctorate"]; | |
if (!level.include(lead.education_level)) | |
lead.invalidate("EMS program requires Bachelor's or higher"); | |
} |
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
curl -v https://api.leadconduit.com/campaigns?api_key=limitedapikey | |
HTTP/1.1 200 OK | |
Connection: close | |
Content-Type: application/json; charset=utf-8 | |
{"count":3, | |
"items":[ | |
{"id":"000qxm170", | |
"name":"Foo Campaign"}, |
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
curl -v https://api.leadconduit.com/campaigns?api_key=limitedapikey | |
HTTP/1.1 200 OK | |
Connection: close | |
Content-Type: application/json; charset=utf-8 | |
{"count":3, | |
"items":[ | |
{"id":"000qxm170", | |
"name":"Foo Campaign"}, |
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
curl -v -X GET https://api.leadconduit.com/sources?api_key=limitedorfullapikey&campaign_id=abc | |
HTTP/1.1 200 OK | |
Date: Tue, 03 Mar 2009 21:04:52 GMT | |
Content-Type: application/json; charset=utf-8 | |
{"count":2, | |
"items":[ | |
{"id":"000qxm180", | |
"name":"Affiliate Number 1"}, |
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
curl -v -X GET https://api.leadconduit.com/sources/node_ids?api_key=limitedorfullapikey | |
HTTP/1.1 200 OK | |
Connection: close | |
Content-Type: application/json; charset=utf-8 | |
{"count":2, | |
"items":[ | |
{"source_id":"0987654321", | |
"source_node_id":"000111122", |
OlderNewer