Pardot API Client
This is a node client wrapper for v3 of the Pardot API.
Table of Contents
Installation
npm install pardot
Use
In order to authenticate to the Pardot API you need to supply email
password
and userKey
. The userKey
can be found in your settings under API User Key
.
var pardot = ;
All methods return a Q promise.
Entities
Campaigns
http://developer.pardot.com/kb/api-version-3/campaigns/
Accessed via client.campaigns
.
;read: function(id, params);update: function(id, params)create: function(params)
Custom Fields
http://developer.pardot.com/kb/api-version-3/custom-fields/
Accessed via client.customFields
.
query: function(params);read: function(id);update: function(id, params);create: function(params);delete: function(id);
Custom Redirects
http://developer.pardot.com/kb/api-version-3/custom-redirects/
Accessed via client.customRedirects
.
;read: function(id);
Dynamic Content
http://developer.pardot.com/kb/api-version-3/dynamic-content/
Accessed via client.dynamicContent
.
;read: function(id);
http://developer.pardot.com/kb/api-version-3/emails/
Accessed via client.email
.
;send: function(params);
Email Templates
http://developer.pardot.com/kb/api-version-3/email-templates/
Accessed via client.emailTemplates
.
;listOneToOne: function();
Forms
http://developer.pardot.com/kb/api-version-3/forms/
Accessed via client.forms
.
;read: function(id);
Lifecycle Histories
http://developer.pardot.com/kb/api-version-3/lifecycle-histories/
Accessed via client.lifecycleHistories
.
;read: function(id);
Lifecycle Stages
http://developer.pardot.com/kb/api-version-3/lifecycle-stages/
Accessed via client.lifecycleStages
.
;read: function(id);
Lists
http://developer.pardot.com/kb/api-version-3/lists/
Accessed via client.lists
.
;read: function(id);update: function(id, params);create: function(params);delete: function(id);
List Memberships
http://developer.pardot.com/kb/api-version-3/list-memberships/
Accessed via client.listMemberships
.
readById: function(id)readByListIdAndProspectId: function(listId, prospectId)create: function(listId, prospectId)updateById: function(id, params)updateByListIdAndProspectId: function(listId, prospectId, params)deleteById: function(id)deleteByListIdAndProspectId: function(listId, prospectId)
Opportunities
http://developer.pardot.com/kb/api-version-3/opportunities/
Accessed via client.opportunities
.
;createByProspectEmail: function(prospectEmail, params);createByProspectId: function(prospectId, params);read: function(id);delete: function(id);undelete: function(id);
Prospects
http://developer.pardot.com/kb/api-version-3/prospects/
Accessed via client.prospects
.
assignByEmail: function(email, params);
assignById: function(id, params);
unassignByEmail: function(email);
unassignById: function(id);
query: function(params);
create: function(email, params);
readById: function(id);
readByEmail: function(email);
updateById: function(id, params);
updateByEmail: function(email, params);
upsertByEmail: function(email, params);
upsertById: function(id, params);
deleteById: function(id);
deleteByEmail: function(email);
Prospect Accounts
http://developer.pardot.com/kb/api-version-3/prospect-accounts/
Accessed via client.opportunities
.
;create: function(params);describe: function();read: function(id);update: function(id, params);
Tags
http://developer.pardot.com/kb/api-version-3/tags/
Accessed via client.tags
.
;read: function(id);
Tag Objects
http://developer.pardot.com/kb/api-version-3/tag-objects/
Accessed via client.tagObjects
.
;read: function(id);removed: function(id);
Users
http://developer.pardot.com/kb/api-version-3/users/
Accessed via client.users
.
;readByEmail: function(email);readById: function(id);
Visitors
http://developer.pardot.com/kb/api-version-3/visitors/
Accessed via client.visitors
.
;assign: function(id, params);read: function(id);
Visitor Activities
http://developer.pardot.com/kb/api-version-3/visitor-activities/
Accessed via client.visitorActivities
.
;read: function(id);
Visits
http://developer.pardot.com/kb/api-version-3/visits/
Accessed via client.visits
.
;read: function(id);