Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newapplesho/salesforce-smalltalk
Salesforce API Library for Pharo Smalltalk
https://github.com/newapplesho/salesforce-smalltalk
pharo salesforce smalltalk
Last synced: 24 days ago
JSON representation
Salesforce API Library for Pharo Smalltalk
- Host: GitHub
- URL: https://github.com/newapplesho/salesforce-smalltalk
- Owner: newapplesho
- License: mit
- Created: 2017-09-27T13:58:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T05:08:47.000Z (about 7 years ago)
- Last Synced: 2024-10-31T07:05:05.364Z (2 months ago)
- Topics: pharo, salesforce, smalltalk
- Language: Smalltalk
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# salesforce-smalltalk [![Build Status](https://travis-ci.org/newapplesho/salesforce-smalltalk.svg?branch=master)](https://travis-ci.org/newapplesho/salesforce-smalltalk)
Salesforce API Library for Pharo Smalltalk## Supported Smalltalk Versions
Pharo Smalltalk 5.0, 6.0
## Installation
```smalltalk
Metacello new
baseline: 'Salesforce';
repository: 'github://newapplesho/salesforce-smalltalk/pharo-repository';
load.
```## Setup
```smalltalk
SFSettings initialize.
SFSettings default.
SFSettings default username: ''.
"You must append the user’s security token to their password A security token is an automatically-generated key from Salesforce."
SFSettings default password: ''.
"Sandbox"
SFSettings default isSandbox: true.
```## Authentication
```smalltalk
SFClient new login.
```## Simple Query
```smalltalk
client := SFClient new.
client query: 'SELECT name FROM Account'.
```## Account and Contact Information
```smalltalk
accessor := SFAccessor new.accessor allAccounts: { 'Id'. 'Name' }.
accessor allContacts: { 'Id'. 'Email' }.accessor allContacts: { 'Id'. 'Email' } withAccount: { 'Id'. 'Name' }.
accessor allAccounts: { 'Id'. 'Name'. } withContacts: { 'Id'. 'Email' }.
```## CRUD
### Delete
```smalltalk
accessor := SFAccessor new.
accessor deleteObject: '' model: SFLead.
```