Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newapplesho/pardot-smalltalk
Pardot API for Pharo Smalltalk
https://github.com/newapplesho/pardot-smalltalk
pardot pharo smalltalk
Last synced: about 2 months ago
JSON representation
Pardot API for Pharo Smalltalk
- Host: GitHub
- URL: https://github.com/newapplesho/pardot-smalltalk
- Owner: newapplesho
- License: mit
- Created: 2017-07-15T02:23:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-24T04:09:24.000Z (over 7 years ago)
- Last Synced: 2024-10-31T07:05:04.766Z (3 months ago)
- Topics: pardot, pharo, smalltalk
- Language: Smalltalk
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pardot-smalltalk [![Build Status](https://travis-ci.org/newapplesho/pardot-smalltalk.svg?branch=master)](https://travis-ci.org/newapplesho/pardot-smalltalk)
[Pardot API](http://developer.pardot.com/) for Pharo Smalltalk.
# Supported Smalltalk Versions
Pharo Smalltalk 5.0, 6.0
# Installation
```smalltalk
Metacello new
baseline: 'Pardot';
repository: 'github://newapplesho/pardot-smalltalk:v0.1.2/pharo-repository';
load.
```# Usage
## Setup
[official documentation](http://developer.pardot.com/#authentication)
> 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.```smalltalk
PardotSettings initialize.
PardotSettings default
email: '';
password: '';
userKey: ''.
```## Authentication
```smalltalk
"print it. 32-character hexadecimal API key will be returned".
PardotLogin new authenticate.
```## Prospects
### Upserting Prospects
```smalltalk
PardotProspects new upsertEmail: ''.
```## Visitors
### Assigning and Reassigning Visitors
```smalltalk
PardotVisitor new assignVisitorId: '' byProspectId: ''.
```## Error handling
```smalltalk
[ PardotProspects new readEmail: '' ]
on: PardotException do:[:ex | ex inspect ].
```