node-pardot

0.0.13 • Public • Published

node-pardot

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)

client.updateProspect(params, cb)

client.createOrUpdateProspect(params, cb)

Contributors

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i node-pardot

Weekly Downloads

1

Version

0.0.13

License

MIT

Last publish

Collaborators

  • ibash
  • jzabel