Launch and monitor StarBonding CLI
Useful for testing the complete process contract before adding it to your application.
pwsh -File .\examples\cli\start-starbonding.ps1 `
-Username YOUR_ACCOUNT_IDDownload PowerShell example ↓Copy, run and adapt
These examples show the two sides of a complete OEM integration: launch the Windows bonding runtime from your application, then provision and renew customer accounts from your protected server.
Windows application side
The downloadable examples pass the password through stdin, drain stdout and stderr concurrently, detect a complete EVENT READY line and provide a graceful stop path.
Useful for testing the complete process contract before adding it to your application.
pwsh -File .\examples\cli\start-starbonding.ps1 `
-Username YOUR_ACCOUNT_IDDownload PowerShell example ↓Creates the named stop event, passes credentials through stdin and starts the publisher only once after readiness.
dotnet new console -n StarBondingLauncher
copy StarBondingLauncher.cs into Program.cs
dotnet run -- YOUR_ACCOUNT_IDDownload C# example ↓start starbonding-cli.exe --username ACCOUNT --password-stdin
write password + newline to child stdin
read complete lines from stdout and stderr concurrently
wait until stdout begins: EVENT READY
publish H.264/AAC FLV to rtmp://127.0.0.1:1935/live/your-key
signal --stop-event for graceful shutdownPartner server side
The PHP example keeps the API key on the server, validates HTTP and JSON results, uses integer paise, and requires an idempotency key for every account creation or renewal.
List current services, check available balance, create a customer account and renew it. Financial commands require an explicit key so the same operation can be retried safely.
php partner-api.php services
php partner-api.php balance
php partner-api.php create SERVICE_ID \
create-customer-0001 "Customer Name" customer@example.com
php partner-api.php renew USER_ID SERVICE_ID \
renew-customer-0001Download PHP example ↓Generate the key when your system creates the intended operation and store it before sending the request. If the request times out, retry the identical request with that same key.
Idempotency-Key: create-customer-0001Using a new key means a new financial operation. Do not generate a replacement key merely because the HTTP response was lost.
Read the complete Partner API contract →