Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openpeeps/mailersend-nim
The unofficial MailerSend Nim SDK
https://github.com/openpeeps/mailersend-nim
api-client api-client-nim mailersend nim nim-client nim-lang nim-sdk openpeeps openpeeps-api openpeeps-clients sdk smtp-client
Last synced: about 2 months ago
JSON representation
The unofficial MailerSend Nim SDK
- Host: GitHub
- URL: https://github.com/openpeeps/mailersend-nim
- Owner: openpeeps
- Created: 2024-04-01T03:56:53.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-03T14:24:35.000Z (9 months ago)
- Last Synced: 2024-04-03T16:00:00.909Z (9 months ago)
- Topics: api-client, api-client-nim, mailersend, nim, nim-client, nim-lang, nim-sdk, openpeeps, openpeeps-api, openpeeps-clients, sdk, smtp-client
- Language: Nim
- Homepage:
- Size: 195 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Asynchronous Nim 👑 client for interacting with the MailerSend API
nimble install mailersend
## 😍 Key Features
- Intuitive API interface
- Direct to object serialization via `pkg/jsony`
- Written in Nim 👑## Examples
```nim
import pkg/mailersendvar
mls = initMailersend(getEnv("api_key"))
mail = newEmail()mail.setSubject("Hello, this is a test")
.setFrom("Example.com", "[email protected]")
.setTo("Joël Chibuzo", "[email protected]")
.setText("This is a text/plain message")
.setHtml("This is a text/html message")let x: XHeaders = waitFor mls.send(mail)
echo x # (id: "660appx0cc4cf5d1c00xb113", paused: false)# check current quota
let q = waitFor mls.getQuota()
echo q.remaining # 99
```### ❤ Contributions & Support
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/mailersend-nim/issues)
- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/mailersend-nim/fork)
- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)
- 🥰 [Donate via PayPal address](https://www.paypal.com/donate/?hosted_button_id=RJK3ZTDWPL55C)### 🎩 License
MIT license. [Made by Humans from OpenPeeps](https://github.com/openpeeps).
Copyright © 2024 OpenPeeps & Contributors — All rights reserved.