Skip to content

Instantly share code, notes, and snippets.

View activeprospect-support's full-sized avatar

ActiveProspect Support activeprospect-support

View GitHub Profile
@activeprospect-support
activeprospect-support / Timing_execution.js
Last active June 8, 2016 14:02
TrustedForm: Timing execution
function loadTrustedForm() {
// Place the core TrustedForm Script here
// You can obtain the core script by signing up at
// http://activeprospect.com/products/trustedform/#integrate-tf
}
@activeprospect-support
activeprospect-support / 4.sh
Last active August 29, 2015 14:07
Understanding LeadConduit Server Response
<response>
<result>errorinvalid xxCampaignId or xxAccountId or xxSiteId</reason>
</response>
@activeprospect-support
activeprospect-support / 3.sh
Last active August 29, 2015 14:07
Understanding the LeadConduit Server Response
<response>
<result>queuedsystem is offline </reason>
</response>
@activeprospect-support
activeprospect-support / 2.sh
Last active August 29, 2015 14:07
Understanding LeadConduit's server response
<response>
<result>failure</result>
<reason>invalid dob</reason>
<leadId>0564nmluy</leadId>
<url>
<![CDATA[ https://app.leadconduit.com/leads?id=0564nmluy ]]>
</url>
</response>
@activeprospect-support
activeprospect-support / 1.sh
Last active August 29, 2015 14:07
Understanding the LeadConduit Server Response
<response>
<result>success</result>
<leadId>0564nm0ni</leadId>
<url>
<![CDATA[ https://app.leadconduit.com/leads?id=0564nm0ni ]]>
</url>
</response>
@activeprospect-support
activeprospect-support / Multiple remove.sh
Last active August 29, 2015 14:07
Adding and removing list items
$ curl -X DELETE https://app.suppressionlist.com/lists/my_list/items \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"values":"[email protected]|[email protected]|[email protected]"}' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
@activeprospect-support
activeprospect-support / Remove response.sh
Last active August 29, 2015 14:07
Adding and Removing List Items
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"deleted": 1
}
@activeprospect-support
activeprospect-support / remove query.sh
Last active August 29, 2015 14:07
Adding and removing list items
$ curl -X DELETE https://app.suppressionlist.com/lists/my_list/items \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"values":"[email protected]"}' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
@activeprospect-support
activeprospect-support / multiple single.sh
Last active August 29, 2015 14:07
Adding and Removing List Items
$ curl -X POST https://app.suppressionlist.com/lists/my_list/items \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"values":"[email protected]|[email protected]|[email protected]"}' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
@activeprospect-support
activeprospect-support / response.sh
Last active August 29, 2015 14:07
Add items to a list
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"accepted": 1,
"rejected": 0
}