SDK Installation
SDK official DYOGG untuk TypeScript, Python, dan Go — install snippet + minimal example.
DYOGG menyediakan client SDK untuk 3 bahasa mainstream:
TypeScript / JavaScript
@dyogg/sdk — 100% typed dari OpenAPI 3.1, tree-shakable, ESM + CJS.
Python
dyogg — sync + async client (httpx), Pydantic v2 models.
Go
github.com/dyogg/dyogg-go — idiomatic Go, context-aware, minimal deps.
Install cepat
npm install @dyogg/sdk
# or
pnpm add @dyogg/sdk
# or
yarn add @dyogg/sdk
Common pattern
Semua SDK share pattern:
client = new DyoClient({ apiKey })
client.<resource>.<action>(<params>) => Promise<T>
Resource yang tersedia: player, character, weapon, artifact, archive, assets, trustScore,
scamReport, buildAnalyzer, damageCalculator, leaderboard.
Support matrix
| SDK | Version | API version | Node/Python/Go min | Async | Streaming |
|---|---|---|---|---|---|
@dyogg/sdk@1.x | 1.0.0 | v1 | Node 18+ | Yes (default) | Yes (ndjson) |
dyogg@1.x (Python) | 1.0.0 | v1 | Python 3.10+ | Yes (AsyncDyoClient) | Yes (async iter) |
dyogg-go@v1.x | 1.0.0 | v1 | Go 1.21+ | native goroutine | Yes (io.Reader) |
Auto-generate SDK
Kalau kamu butuh SDK bahasa lain (Rust / PHP / Ruby / C# / Dart), gunakan spec OpenAPI 3.1:
npx @stainless-api/stainless-cli generate --spec https://dyogg.com/openapi/index.yaml --lang rust
# atau openapi-generator, fern, speakeasy, dst.
Kami tidak maintain official binding di luar 3 bahasa di atas tapi welcome contribution third-party.