Skip to content

Instantly share code, notes, and snippets.

@stephenreid
Created December 17, 2012 15:49
Show Gist options
  • Save stephenreid/4319322 to your computer and use it in GitHub Desktop.
Save stephenreid/4319322 to your computer and use it in GitHub Desktop.
Pardot Create New Prospect from Info
<?php
//$info = $order->info();
$info = array(
'email' => 'test@text.com',
'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