Skip to content

newapplesho/pardot-smalltalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pardot-smalltalk Build Status

Pardot API for Pharo Smalltalk.

Supported Smalltalk Versions

Pharo Smalltalk 5.0, 6.0

Installation

Metacello new
    baseline: 'Pardot';
    repository: 'github://newapplesho/pardot-smalltalk:v0.1.2/pharo-repository';
    load.

Usage

Setup

official documentation

Obtain the email, password, and user_key (available in Pardot under {your email address} > Settings in the API User Key row) for the Pardot user account that will be submitting API requests.

PardotSettings initialize.
PardotSettings default 
	email: '<email>'; 
	password: '<password>'; 
	userKey: '<user_key>'.

Authentication

"print it. 32-character hexadecimal API key will be returned".
PardotLogin new authenticate. 

Prospects

Upserting Prospects

PardotProspects new upsertEmail: '<email>'.

Visitors

Assigning and Reassigning Visitors

PardotVisitor new assignVisitorId: '<visitor_id>' byProspectId: '<prospect_id>'.

Error handling

[ PardotProspects new readEmail: '<e-mail>' ]
	on: PardotException do:[:ex | ex inspect ].