Getting Started
Choosing An SDK
Pick an SDK for the service that reports usage.
You can call the REST API directly or use one of the official SDKs. SDKs are a convenience layer for trusted backend code; they are not required to use Open Spanner.
Do not put Open Spanner API keys in browser or mobile clients.
| Runtime | Package | Use it when |
|---|---|---|
| Go | github.com/ssubedir/open-spanner/sdk/go | Your API or worker is written in Go. |
| TypeScript | @ssubedir/open-spanner | Your service runs on Node.js or a TypeScript backend. |
| Python | open-spanner | You report usage from Python services, scripts, or jobs. |
| C# | OpenSpanner | You run .NET services or workers. |
The SDK pages include in-doc setup and usage snippets for each language:
REST clients and SDKs use the same product model:
- Create an API key in the dashboard.
- Send that key with the request or pass it into the SDK client.
- Define meters or send usage from a trusted service.
- Query or export usage when another system needs it.
If you only need to inspect usage manually, use the dashboard usage page instead of writing client code.