PHPackages                             cwhittl/php-pardot-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cwhittl/php-pardot-api

ActiveLibrary[API Development](/categories/api)

cwhittl/php-pardot-api
======================

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

26752[1 PRs](https://github.com/cwhittl/php-pardot-api/pulls)PHP

Since Feb 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/cwhittl/php-pardot-api)[ Packagist](https://packagist.org/packages/cwhittl/php-pardot-api)[ RSS](/packages/cwhittl-php-pardot-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-pardot-api
==============

[](#php-pardot-api)

PHP wrapper for the Pardot RESTful API

Requirements
============

[](#requirements)

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

Configuration
=============

[](#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
=====

[](#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.

```
