Skip to content

Instantly share code, notes, and snippets.

View demandbaselabs's full-sized avatar

DemandbaseLabs demandbaselabs

View GitHub Profile
@demandbaselabs
demandbaselabs / sdk-implementation-sample.html
Last active January 2, 2016 21:39
Demandbase Segmentation Engine Implementation Sample
<html>
<head>
</head>
<body>
<script type="text/javascript">
var __db = {};
__db.key = 'YOUR_KEY_HERE';
__db.conditions = [
{ name: 'IndustryIsSoftware', attribute: 'industry', operator: '=', value: 'Software & Technology' }
,{ name: 'AudienceIsSMB', attribute: 'audience', operator: 'equals', value: 'SMB', standalone: false }
@demandbaselabs
demandbaselabs / sdk-setup-guide.md
Last active January 2, 2016 21:39
Getting Started Guide for the Demandbase JavaScript SDK

Demandbase JavaScript SDK

This resource has been moved to GitHub https://github.com/demandbaselabs/demandbaselabs/tree/master/JavaScriptSDK

The Demandbase JavaScript SDK is a developer toolkit for the leveraging the Demandbase Platform's Real-Time Identification APIs. Key features include the ability to create reusable visitor segments, and easy access to a website visitor's company profile based on IP address or email domain.

@demandbaselabs
demandbaselabs / form-connector-setup-guide.md
Last active January 4, 2016 20:59
This guide provides instructions on how to configure and install the cloud-based Demandbase Form Connector, including a configuration snippet template.
var isoCountries = {
'AF' : 'Afghanistan',
'AX' : 'Aland Islands',
'AL' : 'Albania',
'DZ' : 'Algeria',
'AS' : 'American Samoa',
'AD' : 'Andorra',
'AO' : 'Angola',
'AI' : 'Anguilla',
'AQ' : 'Antarctica',
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@demandbaselabs
demandbaselabs / countryStateCodeToRegionNameHash.js
Last active August 29, 2015 14:08
This JSON object maps country codes/region codes to region names using the ISO-3166-2 standard. Key: [Country Code]-[Region Code], Value:[Region Name]. Demandbase returns the portion of the key after the dash ('-') for the 'state' and/or 'registry_state' attributes. The value (right-hand side) is provided as the 'region_name' attribute.
var countryStateCodeToRegionMap = {
AD-02 : "Canillo",
AD-03 : "Encamp",
AD-04 : "La Massana",
AD-05 : "Ordino",
AD-06 : "Sant Julià de Lòria",
AD-07 : "Andorra La Vella",
AD-08 : "Escaldes-Engordany",
AE-AJ : "Ajman",
AE-AZ : "Abu Dhabi",