This directory contains practical examples demonstrating how to use the HotPot SDK.
Before running the examples, you can set your API key using environment variables:
export HOTPOT_API_KEY="your-api-key-here"
export HOTPOT_BASE_URL="https://api.hotpot.tech" # Optional, defaults to thisRun any example with:
go run examples/<example_name>/main.goAlternatively, you can use a .env file. Copy the provided .env.example to <your_file> and fill in the values:
cp examples/.env.example <your_file>The examples will automatically load variables from the specified .env if ENV_FILE was set:
ENV_FILE=/path/to/your/.env go run examples/<example_name>/main.goFor more details, see the Hotpot API documentation.