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:
var nodePardot = require('node-pardot');
// Create client using email, password and user_key
nodePardot.PardotAPI({
userKey: user_key,
email: email,
password: password,
DEBUG: true
}, function(err, client) {
// Authentication completed
});
// Alternative using Only API Key
nodePardot.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)