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 / calculating2.sh
Last active March 26, 2019 15:44
Calculating Lead Fingerprint
curl -X POST -uAPI:fc36c8168cbb16784f6a29f89695dd92 'https://cert.trustedform.com/8189d5a77937b27a3d85ca181fc34f2b46a60908' \
-d 'fname=Tom&lname=Jones&[email protected]+&ph1=512-789-1111&ph2=512.555.5785&aff_id=123&reference=ABC123&vendor=SuperInstantLeads'
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "51ddbe9d82d28b8d38000009",
"age": 10,
"page_id": "51de277782d28be89900008a",
@activeprospect-support
activeprospect-support / lead.sh
Last active August 29, 2015 14:07
Calculating Lead Fingerprint
curl -X POST -uAPI:fc36c8168cbb16784f6a29f89695dd92 'https://cert.trustedform.com/8189d5a77937b27a3d85ca181fc34f2b46a60908' \
-d 'fingerprint=12864b281c728bdca0f2102dba31308e1014fe4a
&fingerprint=921e1dbc260148681f6f14a966c3e3242a4d3912
&fingerprint=03537b0556fa5ea9042b264d49def5c3457b4ed2'
@activeprospect-support
activeprospect-support / Claiming a certicate.sh
Last active August 29, 2015 14:07
Claiming a certicate
$ curl -X POST -uAPI:fc36c8168cbb16784f6a29f89695dd92 \
https://cert.trustedform.com/8189d5a77937b27a3d85ca181fc34f2b46a60908 \
-H 'Accept: application/json' -H 'Content-Type: application/x-www-form-urlencoded' \
-d 'vendor=SuperInstantLeads&reference=ABC123 \
&fingerprint=03685a113a7bf67d146c05d2165c9fccbfd02719 \
&fingerprint=c0c686d4b4c680347df82742250093bbbf361b3b \
&scan=How%20did%20you%20hear%20about%20us \
&scan!=First%20Name'
HTTP/1.1 201 Created
@activeprospect-support
activeprospect-support / TF certificate fields.sh
Last active February 24, 2016 20:49
Certificate Fields Explained
$ curl -X GET -uAPI:fc36c8168cbb16784f6a29f89695dd92 https://cert.trustedform.com/8189d5a77937b27a3d85ca181fc34f2b46a60908 -H 'Accept: application/json'
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"token": "8189d5a77937b27a3d85ca181fc34f2b46a60908",
"ip": "76.253.76.139",
"location": "http://activeprospect.hostedwebform.com/contact-us?<query string hidden>",
"parent_location": "http://www.activeprospect.com/contact-us.php",
"framed": true,
@activeprospect-support
activeprospect-support / How to track web traffic using campaign fields.php
Last active August 29, 2015 14:07
How to track web traffic using campaign fields
<?
$trafficsource = $_GET['trafficsource'];
$keyword = $_GET['keyword'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
@activeprospect-support
activeprospect-support / updating a lead.sh
Last active August 29, 2015 14:07
LC - How to work with your leads via the API
curl -v -X POST https://api.leadconduit.com/leads/myleadid/update -d"api_key=fullapikey" -d"[email protected]"
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{"result":"lead updated","updated":["email"]}
@activeprospect-support
activeprospect-support / rolling back a converted lead.sh
Last active August 29, 2015 14:07
LC - How to work with your leads via the API
curl -v -X POST https://api.leadconduit.com/leads/myleadid/rollback_conversion -d"api_key=fullapikey"
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{"result":"lead is no longer converted"}
@activeprospect-support
activeprospect-support / converting a lead.sh
Last active August 29, 2015 14:07
LC - How to work with your leads via the API
curl -v -X POST https://api.leadconduit.com/leads/myleadid/convert -d"api_key=fullapikey" -d"date=2009-02-21"
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{"result":"lead is marked as converted"}
@activeprospect-support
activeprospect-support / marking a lead delivered.sh
Last active August 29, 2015 14:07
LC - How to work with your leads via the API
curl -v -X POST https://api.leadconduit.com/leads/myleadid/mark_delivered -d"api_key=fullapikey"
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{"result":"marked as delivered"}
@activeprospect-support
activeprospect-support / rolling back a returned lead.sh
Last active August 29, 2015 14:07
LC - How to work with your leads via the API
curl -v -X POST https://api.leadconduit.com/leads/myleadid/rollback_return -d"api_key=fullapikey"
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{"result":"lead is no longer returned"}