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 = "https://app.snapforce.com/prodigy/api/v1/request.php?module=$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);
curl_close($ch);

// JSON decode returned deal object
$result = json_decode($output, true);
print_r($result);
#!/bin/bash

// 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="https://app.snapforce.com/prodigy/api/v1/request.php?module=$module&api_username=$api_user&api_token=$api_token"

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