This page explains how to obtain all deals from your database, you could use this same example to get all organizations, persons, notes, etc. Simply swap the module name for your needs.

// Snapforce API token
$api_token = 'your api token goes here';

// Snapforce username
$api_user = 'your username goes here';

// Module name
$module = "Deals";

// Endpoint url
$url = "$module&api_username=$api_user&api_token=$api_token";

// GET request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

echo 'Sending request...' . PHP_EOL;

$output = curl_exec($ch);

// JSON decode returned deal object
$result = json_decode($output, true);

// Snapforce API token
api_token="your api token goes here"

// Snapforce username
api_user="your username goes here"

// Module name

// Endpoint url

curl -H 'Content-type: application/json' -url $url