Skip to content

Instantly share code, notes, and snippets.

@stephenreid
Created July 10, 2012 22:50
Show Gist options
  • Save stephenreid/3086745 to your computer and use it in GitHub Desktop.
Save stephenreid/3086745 to your computer and use it in GitHub Desktop.
Prospect Query With Criteria
<?php
$pardotConnector = new PardotConnector();
//Keep credentials secure
$pardotConnector->authenticate($username,$password,$userKey);
//Return array of simpleXMLObject prospects
$recentlyUpdatedProspects = $pardotConnector->prospectQuery(
$queryCriteria = array(
'updated_after'=>'yesterday',
'updated_before'=>'last_year',
'last_activity_after'=>'last_seven_days',
'assigned'=>true,
'grade_greater_than'=>'F',
'is_starred'=>true
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment