opencode — a typed Nim client auto-generated from OpenAPI 3.x
nimble install opencode
Note
This package is auto-generated from an OpenAPI 3.x specification using
the Nimbase codegen. Do not edit the
generated sources by hand — regenerate with nimbase instead.
- Typed client for opencode (188 endpoints)
- Bearer-token authentication
- Mock-server backed test suite
- Async-first, generated with Nimbase
import opencode
import std/asyncdispatch
proc main() {.async.} =
let client = initOpencodeClient("your-api-key")
try:
let res = await client.deleteAuthProviderID("test")
echo res
except CatchableError as e:
echo "request failed: ", e.msg
when isMainModule:
waitFor main()- 🐛 Found a bug? Create a new Issue
- 👋 Wanna help? Fork it!
MIT license. Made with Nimbase Codegen
Copyright Nim Community — All rights reserved.