Giter VIP home page Giter VIP logo

node-pardot's Introduction

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 [email protected] 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

node-pardot's People

Contributors

amit777 avatar ibash avatar jzabel avatar micahlmartin avatar wyattbenno777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-pardot's Issues

Promises

How do you feel about using a promise livrary like q instead of callbacks? Also, how are you handling api key expiration?

v4 support

Hi there, I see some commits for v4 API support. Is this currently in a workable state? Maybe I can help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.