SP SPACEPLACE
Browseable cookbook

Fifteen recipes.
PHP and Bash.

Every example below is a complete, runnable script. Click into one to see the PHP and Bash source side-by-side with syntax highlighting and one-click copy.

PHP Bash
Before you run anything

Three setup steps.

  1. 1Create a DataStream in Connect — copy its UUID.
  2. 2Create a Token — copy its value.
  3. 3Create a Token Provision with API Endpoints * (or including /api/events), Start in the past, End in the future.

Paste those values into the script before running. See the authentication section for the full validation rules.