Knowledge · Developer
SDKs and code examples
AS Tech ships official SDKs for six languages. Each SDK handles HMAC signing, retries, rate-limit back-off and webhook verification so you can focus on business logic.
Updated January 2025 · AS Tech iGaming editorial
Supported languages
- Node.js (TypeScript) — @astech/api
- Python 3.10+ — astech-api
- Go 1.22+ — github.com/astech/api-go
- PHP 8.1+ — astech/api
- .NET 6+ (C#) — AsTech.Api NuGet
- Java 17+ — com.astech:api
Installation
Node: npm install @astech/api. Python: pip install astech-api. Go: go get github.com/astech/api-go. PHP: composer require astech/api. .NET: dotnet add package AsTech.Api. Java: com.astech:api in your Maven/Gradle dependencies.
Client initialisation
Every SDK follows the same shape: instantiate the client with your API key, secret and optional region hint. The client automatically signs every request, retries on 5xx with exponential back-off, and back-offs on 429 rate-limit responses.
Launching a game
client.games.launch({ playerId, gameCode, currency, mode: 'real' | 'demo' }) returns a signed one-time iframe URL. Embed the URL in your player frontend. The SDK handles session token minting, retries and error mapping.
Wallet webhook helpers
Each SDK provides a webhook verifier — pass the raw request body and headers, receive a strongly-typed callback payload after HMAC verification. Reject any request that fails verification with a 401 response.
Retries & idempotency
SDKs retry idempotent requests (game.launch, reports.ggr) up to 3 times with exponential back-off. Wallet writes (bet/win/rollback) are retried only when the server explicitly indicates the write did not commit.
Frequently asked questions
Are SDKs mandatory?+
No — the API is standard REST. SDKs speed up integration but you can integrate directly with any HTTP client that supports HMAC signing.
Which SDK is best?+
Whichever matches your stack. All six SDKs implement the same contract with idiomatic APIs per language.
Are SDKs open source?+
Yes — MIT-licensed on GitHub. Feature parity is guaranteed within 2 weeks of new API endpoints landing.
Do SDKs handle rate limits?+
Yes — SDKs read Retry-After headers and back off automatically. You do not need to catch 429 responses manually.
Postman collection?+
Yes — a Postman collection with signing scripts ships alongside the SDKs. See /api-docs for downloads.