Runnable scripts that demonstrate the SDK end-to-end. Every example
expects a valid Customer API token in the STROMCOM_TOKEN environment
variable; some examples need additional variables (the file header
documents which).
export STROMCOM_TOKEN="…"
# optional — point at a non-production instance
export STROMCOM_BASE_URL="http://localhost:7000/api/customer/v1/"
php examples/quickstart.php| File | What it shows |
|---|---|
quickstart.php |
Smallest possible round-trip — read the project and list users. |
project_settings.php |
Read project settings, then PATCH a couple of policy flags. |
users_lifecycle.php |
Full user lifecycle: create → fetch → update → delete → restore. |
thread_with_messages.php |
Single-call fetch of a thread, its messages, and grouped attachments. |
paginate_messages.php |
Walk every message in a thread via the lastMessageHash cursor. |
download_attachment.php |
Resolve attachment metadata, fetch a signed URL, save to disk. |
error_handling.php |
Catch the typed exception hierarchy (NotFound, Validation, …). |
custom_http_client.php |
Plug a custom HttpClientInterface (logging wrapper here). |
All examples return typed read models from Stromcom\Sdk\Model\* —
e.g. $project->name instead of $project['name']. See the package
README.md for the full type reference.