Created
July 10, 2012 22:50
-
-
Save stephenreid/3086745 to your computer and use it in GitHub Desktop.
Prospect Query With Criteria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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