Skip to content

Instantly share code, notes, and snippets.

View activeprospect-support's full-sized avatar

ActiveProspect Support activeprospect-support

View GitHub Profile
curl -X POST -u API:065fa3065fa3065fa3065fa3065fa3065fa3 'https://cert.trustedform.com/1a2e71c22c16765fe114f8d7a99bc7a1b258362'
HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
{
"token": "1a2e71c22c16765fe114f8d7a99bc7a1b258362",
"browser": "Chrome Mobile 74.0.3729.136",
"claims": [
{
@activeprospect-support
activeprospect-support / SL - adding items with timestamp
Last active December 9, 2016 15:22
SL API - Adding item with timestamp
$ curl -X POST https://app.suppressionlist.com/lists/my_list/items \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"values":["test@email.com"],"timestamp":"2015-08-26T17:29:32Z"}'
-uAPI:fc36c8168cbb16784f6a29f89695dd92
Response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
<phones>
<PhoneNumber PhoneType="3">**phone_1**</PhoneNumber>
</phones>
<phones>
<PhoneNumber PhoneType="1">**phone_2**</PhoneNumber
</phones>
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<lead>
<Acode>D80731</Acode>
<FirstName>**first_name**</FirstName>
<LastName>**last_name**</LastName>
<HSGraduationYear>** graduation_year **</HSGraduationYear>
</lead>
<phones>
<PhoneNumber>**phone_1**</PhoneNumber>
{
"lead" : {
"Acode" : "D80731",
"FirstName" : "**first_name**",
"LastName" : "**last_name**",
"HSGraduationYear" : "**graduation_year**",
},
"phones" : [{
"PhoneNumber" : "**phone_1**",
"PhoneType" : "3"
https://app.leadconduit.com/flows/<flow id>/sources/<source id>/submit
@activeprospect-support
activeprospect-support / sample duplicate.sh
Last active January 14, 2019 14:40
Sample duplicate lead.sh
curl -v -X POST
https://app.leadconduit.com/flows/5462c7eb76fefd217d333552/sources/5462c7fb745fb567baf2e093/submit \
-H ‘Accept:application/json` \
-H `Content-Type:application/x-www-form-urlencoded` \
-d `first_name=Jane&last_name=Doe&phone_1=(512)%20789-2222&email=janed%40test.com&mortgage.property.state=TX&mortgage.loan.purpose=purchase&mortgage.loan.amount=200000&mortgage.loan.down_payment=20000&mortgage.property.use=primary&mortgage.property.type=single%20family&mortgage.property.postal_code=78751’
> HTTP/1.1 201 Created
> Connection: keep-alive
> Content-Length: 87
> Content-Type: application/json
curl -v -X POST
https://app.leadconduit.com/flows/5462c7eb76fefd217d333552/sources/5462c7fb745fb567baf2e093/submit \
-H ‘Accept:application/json` \
-H `Content-Type:application/x-www-form-urlencoded` \
-d `first_name=John&last_name=Doe&phone_1=(512)%20789-1111&email=jdoe%40test.com&mortgage.property.state=TX&mortgage.loan.purpose=purchase&mortgage.loan.amount=100000&mortgage.loan.down_payment=20000&mortgage.property.use=primary&mortgage.property.type=single%20family&mortgage.property.postal_code=78751’
> HTTP/1.1 201 Created
> Connection: keep-alive
> Content-Length: 66
> Content-Type: application/json
$('input').on('input', function() {this.setAttribute("value", $(this).val())})
@activeprospect-support
activeprospect-support / Scanning for text.sh
Last active August 29, 2015 14:18
Scanning for text.sh
$ 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'
...