Created
December 17, 2012 15:49
-
-
Save stephenreid/4319322 to your computer and use it in GitHub Desktop.
Pardot Create New Prospect from Info
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 | |
//$info = $order->info(); | |
$info = array( | |
'email' => '[email protected]', | |
'first' => 'Bob'. | |
'last' => 'Roberts' | |
); | |
$pardotConnector = new PardotConnector(); | |
//Keep credentials secure | |
//consider setting from System variables | |
$pardotConnector->authenticate($username,$password,$userKey); | |
$pardotConnector->prospectCreate( | |
array( | |
'email' =>$info['email'], | |
'first_name'=>$info['first'], | |
'last_name' =>$info['last'], | |
); | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment