2017 © Pedro Peláez
 

library php-pardot-api

An API wrapper for the Pardot (a salesforce.com company) API.

image

afischoff/php-pardot-api

An API wrapper for the Pardot (a salesforce.com company) API.

  • Friday, November 22, 2013
  • by afischoff
  • Repository
  • 2 Watchers
  • 2 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 1 Versions
  • 11 % Grown

The README.md

php-pardot-api

PHP wrapper for the Pardot RESTful API, (*1)

Requirements

  1. PHP 5.3.*
  2. cURL library installed
  3. Install directory should be writable (not required, but strongly encouraged)

Configuration

  1. Set the email, password, and user_key values in the pardot_config.php file
  2. Set the debug mode and logging settings in the pardot_config.php file (optional)

Usage

  1. Set the namespace: use \Pardot\API as API;
  2. Make requests using the 3 main request functions:
    1. doOperationById($object, $operation, $id = null, $parameters = null)
    2. doOperationByField($object, $operation, $field = null, $fieldValue = null, $parameters = null)
    3. queryObject($object, $parameters = null)

The $object and $operation values are the constants referenced at the top of the class file., (*2)


<?php
// namespace config
use \Pardot\API as API;

// get all prospects updated within the last 2 hours
$prospects = API::Instance()->queryObject(API::OBJ_PROSPECT, array('updated_after' => '2 hours ago'));
var_dump($prospects);

See the example.php file for complete usage examples., (*3)

The Versions

22/11 2013

dev-master

9999999-dev

An API wrapper for the Pardot (a salesforce.com company) API.

  Sources   Download

MIT

by Andy Fischoff