UPPU API documentation

Code examples

The examples show the common tasks in PHP, Node.js, Python and C#, without any package beyond the language's standard library. Each language has a small client that the other examples use; copy it into your project and adapt the error handling to your own code.

Configuration

The examples read the base URL and the key from the environment, never from the source code:

export UPPU_API_BASE=https://messaging-staging.uppu.net/v1   # production: https://messaging.uppu.net/v1
export UPPU_API_KEY=uppu_test_...                           # production: uppu_live_...
export UPPU_WEBHOOK_SECRET=whsec_...                         # the signing secret of your webhook endpoint

Examples