npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lew-pardot

v0.0.9

Published

A pardot API client forked from micahlmartin/pardot

Downloads

27

Readme

Pardot API Client

Circle CI

This is a node client wrapper for v4 (migration) of the Pardot API.

This project was forked from https://github.com/micahlmartin/pardot

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 = require('pardot');
pardot({
    email: '[email protected]',
    password: 'easy',
    userKey: 'abc123'
}).then(function(client) {

    // We've successfully authenticated.
    // Perform some action
    client.prospects.upsertByEmail('[email protected]', {
        first_name: 'Joe',
        last_name: 'Schmoe'
    });

}).fail(function(err) {
    // Failed to authenticate
})

All methods return a Q promise.

Entities

Campaigns

http://developer.pardot.com/kb/api-version-4/campaigns/

Accessed via client.campaigns.

query: function(params);
read: function(id, params);
update: function(id, params)
create: function(params)

Custom Fields

http://developer.pardot.com/kb/api-version-4/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-4/custom-redirects/

Accessed via client.customRedirects.

query: function(params);
read: function(id);

Dynamic Content

http://developer.pardot.com/kb/api-version-4/dynamic-content/

Accessed via client.dynamicContent.

query: function(params);
read: function(id);

Email

http://developer.pardot.com/kb/api-version-4/emails/

Accessed via client.email.

read: function(id);
send: function(params);

Email Templates

http://developer.pardot.com/kb/api-version-4/email-templates/

Accessed via client.emailTemplates.

read: function(id);
listOneToOne: function();

Forms

http://developer.pardot.com/kb/api-version-4/forms/

Accessed via client.forms.

query: function(params);
read: function(id);

Lifecycle Histories

http://developer.pardot.com/kb/api-version-4/lifecycle-histories/

Accessed via client.lifecycleHistories.

query: function(params);
read: function(id);

Lifecycle Stages

http://developer.pardot.com/kb/api-version-4/lifecycle-stages/

Accessed via client.lifecycleStages.

query: function(params);
read: function(id);

Lists

http://developer.pardot.com/kb/api-version-4/lists/

Accessed via client.lists.

query: function(params);
read: function(id);
update: function(id, params);
create: function(params);
delete: function(id);

List Memberships

http://developer.pardot.com/kb/api-version-4/list-memberships/

Accessed via client.listMemberships.

query: function(params)
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-4/opportunities/

Accessed via client.opportunities.

query: function(params);
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-4/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-4/prospect-accounts/

Accessed via client.opportunities.

query: function(params);
create: function(params);
describe: function();
read: function(id);
update: function(id, params);

Tags

http://developer.pardot.com/kb/api-version-4/tags/

Accessed via client.tags.

query: function(params);
read: function(id);

Tag Objects

http://developer.pardot.com/kb/api-version-4/tag-objects/

Accessed via client.tagObjects.

query: function(params);
read: function(id);
removed: function(id);

Users

http://developer.pardot.com/kb/api-version-4/users/

Accessed via client.users.

query: function(params);
readByEmail: function(email);
readById: function(id);

Visitors

http://developer.pardot.com/kb/api-version-4/visitors/

Accessed via client.visitors.

query: function(params);
assign: function(id, params);
read: function(id);

Visitor Activities

http://developer.pardot.com/kb/api-version-4/visitor-activities/

Accessed via client.visitorActivities.

query: function(params);
read: function(id);

Visits

http://developer.pardot.com/kb/api-version-4/visits/

Accessed via client.visits.

query: function(params);
read: function(id);