paddle
Paddle API client
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-05 07:26 |
Tags
Authors
- George Lemon
Installation
nimble install paddle
choosenim install paddle
git clone https://github.com/openpeeps/paddle-nim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| paddle | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.2.0 | No |
| openparser | - | No |
Source
| Repository | https://github.com/openpeeps/paddle-nim |
|---|---|
| Homepage | https://github.com/openpeeps/paddle-nim |
| Registry Source | nimble_official |
README
Paddle API Client for 👑 Nim language
nimble install paddle
😍 Key Features
- Asynchronous API calls using Nim's
async/await - Direct-to-object mapping of Paddle API responses to Nim types
- Idiomatic Nim API client for the Paddle API
Examples
import paddle
let client = initPaddleClient("pdl_sdbx_apikey_")
# create your Paddle product
let product = await client.postProduct("My Product", some("A great product"))
# add a price to your product
let price = await client.postPrice(
productId = product.id,
name = "Standard Plan",
description = "The standard plan for my product",
billingCycle = paddle.initBillingCycle(PaddleBillingInterval.month, 1),
unitPrice = initPrice("1000", EUR)
)
TODO
- [ ] Use
pkg/moneyfor price fields instead of strings - [ ] Add more API endpoints (subscriptions, coupons, etc.)
- [ ] Use
pkg/openparserdump hooks, skip fields, etc. to reduce use ofJsonNodenodes (once implemented lol) - [ ] Add support for webhooks and events
- [ ] Add more examples and documentation
- [ ] Add unit tests
❤ Contributions & Support
- 🐛 Found a bug? Create a new Issue
- 👋 Wanna help? Fork it!
- 😎 Get €20 in cloud credits from Hetzner
🎩 License
MIT license. Made by Humans from OpenPeeps.
Copyright OpenPeeps & Contributors — All rights reserved.