Skip to content

Instantly share code, notes, and snippets.

@activeprospect-support
Last active August 29, 2015 14:07
Show Gist options
  • Save activeprospect-support/dccd67daa09a4d11ae3d to your computer and use it in GitHub Desktop.
Save activeprospect-support/dccd67daa09a4d11ae3d to your computer and use it in GitHub Desktop.
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
Content-Type: application/json; charset=utf-8
Location: https://app.trustedform.com/claims/51ddbe9d82d28b8d38000009
{
"id": "51ddbe9d82d28b8d38000009",
"page_id": "51de277782d28be89900008a",
"warnings": [],
"reference": "ABC123",
"vendor": "SuperInstantLeads",
"fingerprints": {
"matching": [
"03685a113a7bf67d146c05d2165c9fccbfd02719"
],
"non_matching": [
"c0c686d4b4c680347df82742250093bbbf361b3b"
]
},
"created_at": "2013-07-10T20:05:49Z",
"expires_at": "2013-08-09T20:05:49Z",
“masked”: false,
"masked_cert_url": "http://cert.trustedform.com/dfd38cb0637c5a343a07282b28d6426a15689611",
"cert": {
"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,
"browser": "Safari 6.0.5",
"operating_system": "OS X 10.8",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1",
"snapshot_url": "http://snapshots.trustedform.com/8189d5a77937b27a3d85ca181fc34f2b46a60908/index.html",
"created_at": "2013-07-10T02:10:50Z",
"expires_at": "2013-07-13T02:10:50Z",
"geo": {
"lat": 30.2672,
"lon": -97.7431,
"city": "Austin",
"state": "TX",
"postal_code": "78703",
"country_code": "US",
"time_zone": "America/Chicago"
},
"claims": [
{
"id": "51ddbe9d82d28b8d38000009",
"page_id": "51de277782d28be89900008a",
"reference": "ABC123",
"vendor": "SuperInstantLeads",
"created_at": "2013-07-10T20:05:49Z",
"expires_at": "2013-08-09T20:05:49Z",
“masked”: false,
"masked_cert_url": "http://cert.trustedform.com/dfd38cb0637c5a343a07282b28d6426a15689611",
"fingerprints": {
"matching": [
"03685a113a7bf67d146c05d2165c9fccbfd02719"
],
"non_matching": [
"c0c686d4b4c680347df82742250093bbbf361b3b"
]
},
"scans": {
"found": ["How did you hear about us", "First Name"],
"not_found": []
},
"warnings": ["string found in snapshot"]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment