A node.js library for the Pardot API
Availability to create a client by using email / password and a user key.
Alternatively, you can also create using just an apiKey.
Basic Usage Follows this Pattern:
varnodePardot=require('node-pardot');// Create client using email, password and user_keynodePardot.PardotAPI({userKey: user_key,email: email,password: password,DEBUG: true},function(err,client){// Authentication completed});// Alternative using Only API KeynodePardot.PardotAPI({apiKey: api_key},function(err,client){// Authentication complete});client.queryProspects(function(error,data){if(error){console.log('Error while querying prospects');}else{console.log(JSON.stringify(data));}});###Current Available Functions for v3 API
View code for available params. Pardot may or may not keep their params up to date.
client.queryVisitors(params, cb)currently have an email out to api@pardot.com because our visitor results are coming back empty
client.queryCampaigns(params, cb)
client.createNewCampaign(params, cb)
client.queryOpportunities(params, cb)
client.queryProspects(params, cb)
client.createNewProspects(params, cb)