Download the PHP package cyber-duck/pardot-api without Composer
On this page you can find all versions of the php package cyber-duck/pardot-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cyber-duck/pardot-api
More information about cyber-duck/pardot-api
Files in cyber-duck/pardot-api
Package pardot-api
Short Description PHP package to interact with the Pardot API
License MIT
Homepage https://github.com/cyber-duck/pardot-api
Informations about the package pardot-api
Pardot-API
PHP package to interact with the Pardot API
Author: Andrew Mc Cormack
Pardot API PHP Library
A library to integrate with the Pardot API through PHP objects
This library simplifies the process of authentication and querying the Pardot API and provides access to all of the v4 API features.
Latest Version 2.0.0 supports Salesforce SSO authentication.
Setup
To initalise the Pardot API object pass your user email, password, client id, client secret and business unit id credentials. Any subsequent request to fetch data from the API will automatically perform the authentication actions before trying to fetch data.
Querying the API
You can call the query method on an any pardot object passing the object, operator, and data array (optional)
Object Methods
The PardotApi instance has functions which correspond to the object types in Pardot to simplify calls to the API. When calling one of these functions a query object is returned (->campaigns() returns a CampaignsQuery object). These returned objects in turn have functions corresponding to different object actions such as query, create, update, insert, delete etc. The full list of objects available are as follows:
Account methods
Campaign methods
Custom Fields methods
Custom Redirects methods
Dynamic Content methods
Email Clicks methods
Email methods
Email Templates methods
Forms methods
Lifecycle Histories methods
Lifecycle Stages methods
List Memberships methods
Lists methods
Opportunities methods
Prospect Accounts methods
Prospects methods
Tag Objects methods
Tags methods
Users methods
Visitor Activities methods
Visitors methods
Visits methods
Debugging
Error messages can be enabled by turning debugging on. Requests to the Pardot API will fail silently by default so as to prevent fatal application errors. Extra response checking should be conducted when implementing this library as most methods will return null when there is an issue with the API query.
Output Type
You can change the output type to full, simple, mobile, or bulk. Defaults to full.