Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare API — a typed Nim client auto-generated from OpenAPI 3.x

nimble install cloudflare

API reference
Github Actions Github Actions

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.

Features

  • Typed client for Cloudflare API (3334 endpoints)
  • Bearer-token authentication
  • Mock-server backed test suite
  • Async-first, generated with Nimbase

Examples

import cloudflare
import std/asyncdispatch

proc main() {.async.} =
  let client = initCloudflareClient("your-api-key")
  client.baseUri = "https://api.cloudflare.com/client/v4"
  try:
    let res = await client.getAccounts("test", 1.0, 1.0, {})
    echo res
  except CatchableError as e:
    echo "request failed: ", e.msg

when isMainModule:
  waitFor main()

❤ Contributions & Support

🎩 License

MIT license. Made with Nimbase Codegen
Copyright Nim Community — All rights reserved.

About

WIP Nim library for the Cloudflare API

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Generated from nimbase/oapi-starter