smsgora-nim

SMS Gora SMS Gateway - official Nim client: send and receive SMS through your own Android phones. By Tekservix

Active Pure Nim score 65/100 · last commit 2026-11-11 · 0 stars · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Stars 0
Forks 0
Open Issues 0
Last Commit 2026-11-11
Downloads 0
Last Indexed 2026-11-23 09:07

Installation

nimble install smsgora-nim
choosenim install smsgora-nim
git clone https://github.com/TekservixHQ/smsgora-nim

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
smsgora-nim - - - - - - ✓ - - -

Source

Repository https://github.com/TekservixHQ/smsgora-nim
Homepage https://tekservix.com/smsgora/
Registry Source github

README

smsgora (Nim)

tests

SMS Gora SMS Gateway - official Nim client: send and receive SMS through your own Android phones. By Tekservix.

Nim client for the SMS Gora SMS Gateway API.

SMS Gora turns Android phones with ordinary SIM cards into an SMS gateway. Your code calls the API, a linked phone sends the text, and replies and delivery reports come back to you. There's no sender ID registration and no per-message fee from us: your mobile operator bills the texts like any SMS.

Install

nimble install https://github.com/TekservixHQ/smsgora-nim

Compile your program with -d:ssl (HTTPS). Nim 1.6+; depends only on nimcrypto (for the webhook signature check).

Usage

You need a Tekservix account with SMS Gora and an API key (SMS Gora → API keys). Keep it on your server.

import std/os, smsgora

let sms = newSmsGora(getEnv("SMSGORA_KEY"))

let res = sms.sendSms("+15551234567", "Your verification code is 482913")
echo res["message_ids"][0].getInt     # 1873

# Several numbers, a chosen phone and SIM, scheduled
discard sms.sendSms(@["+15551234567", "+447700900123"], "Reminder: 10:00 tomorrow",
                    deviceId = "42", simSlot = 1, scheduleAt = "2026-12-01T08:00:00Z")

# Different texts in one call (up to 5,000 recipients)
discard sms.sendBulkSms("42", @[
  BulkMessage(recipients: @["+15551234567"], message: "Hi Aline, parcel #1042 is ready."),
  BulkMessage(recipients: @["+15557654321"])], "Hello, your parcel is ready for pickup.")

echo sms.getMessage("1873")["status"].getStr          # queued, dispatched, sent, delivered, failed
echo sms.listReceivedSms(filters = [("since", "2026-11-01"), ("limit", "50")])
echo sms.listDevices()
echo sms.request("GET", "/batches/311")               # any other endpoint

Failed calls raise SmsGoraError with status, msg, errors, body and retryAfter.

Webhooks carry X-SmsGora-Signature: sha256=... (HMAC-SHA256 of the raw body): check it with verifyWebhook(rawBody, signature, secret).

More from Tekservix

License

MIT