Liking cljdoc? Tell your friends :D

tekservix.smsgora

SMS Gora SMS Gateway: Clojure client by Tekservix.

Send and receive SMS through your own Android phones. A thin wrapper over the official Java client (com.tekservix/smsgora on Maven Central); every call returns plain Clojure data (maps with keyword keys, vectors).

You need a Tekservix account with SMS Gora and an API key (it starts with sgk_): https://tekservix.com/smsgora

SMS Gora SMS Gateway: Clojure client by Tekservix.

Send and receive SMS through your own Android phones. A thin wrapper over the
official Java client (com.tekservix/smsgora on Maven Central); every call returns
plain Clojure data (maps with keyword keys, vectors).

You need a Tekservix account with SMS Gora and an API key (it starts with sgk_):
https://tekservix.com/smsgora
raw docstring

cancel-messageclj

(cancel-message c id)

Cancels a queued or scheduled message.

Cancels a queued or scheduled message.
sourceraw docstring

clientclj

(client api-key)
(client api-key
        {:keys [base-url timeout-ms]
         :or {base-url SmsGora/DEFAULT_BASE_URL timeout-ms 30000}})

Creates a client. Options: :base-url, :timeout-ms (default 30000).

(def sms (client (System/getenv "SMSGORA_API_KEY")))

Creates a client. Options: :base-url, :timeout-ms (default 30000).

(def sms (client (System/getenv "SMSGORA_API_KEY")))
sourceraw docstring

create-webhookclj

(create-webhook c url & [events device-id])

Adds a webhook. events default to ["sms.received"].

Adds a webhook. events default to ["sms.received"].
sourceraw docstring

delete-webhookclj

(delete-webhook c id)

Removes a webhook.

Removes a webhook.
sourceraw docstring

get-accountclj

(get-account c)

Plan, limits and usage.

Plan, limits and usage.
sourceraw docstring

get-batchclj

(get-batch c id)

A bulk batch.

A bulk batch.
sourceraw docstring

get-deviceclj

(get-device c id)

One phone.

One phone.
sourceraw docstring

get-messageclj

(get-message c id)

One message with its delivery status.

One message with its delivery status.
sourceraw docstring

json->cljclj

(json->clj e)

Turns a Gson JsonElement into Clojure data.

Turns a Gson JsonElement into Clojure data.
sourceraw docstring

list-devicesclj

(list-devices c)

Your linked phones.

Your linked phones.
sourceraw docstring

list-messagesclj

(list-messages c & [filters])

Messages, filtered: {:direction "out" :status "failed" :limit 20}.

Messages, filtered: {:direction "out" :status "failed" :limit 20}.
sourceraw docstring

list-received-smsclj

(list-received-sms c & [device-id filters])

Incoming SMS for one phone (or all with nil device-id).

Incoming SMS for one phone (or all with nil device-id).
sourceraw docstring

list-webhooksclj

(list-webhooks c)

Your webhooks.

Your webhooks.
sourceraw docstring

requestclj

(request c method path & [body])

Any other API call: (request sms :get "/batches/311").

Any other API call: (request sms :get "/batches/311").
sourceraw docstring

send-bulk-smsclj

(send-bulk-sms c device-id messages & [message-template])

Different texts for different people in one call (up to 5,000 recipients). messages: [{:recipients ["+250788123456"] :message "Hi Aline"} {:recipients ["+250722000000"]}]

Different texts for different people in one call (up to 5,000 recipients).
messages: [{:recipients ["+250788123456"] :message "Hi Aline"} {:recipients ["+250722000000"]}]
sourceraw docstring

send-smsclj

(send-sms c {:keys [to message device-id sim-slot schedule-at]})
(send-sms c to message)

Sends one text to one or more numbers.

(send-sms sms "+250788123456" "Your order has shipped") (send-sms sms {:to ["+250788123456" "+250722000000"] :message "Hi" :device-id 12 :sim-slot 1 :schedule-at "2026-12-01T08:00:00Z"})

Sends one text to one or more numbers.

(send-sms sms "+250788123456" "Your order has shipped")
(send-sms sms {:to ["+250788123456" "+250722000000"] :message "Hi"
               :device-id 12 :sim-slot 1 :schedule-at "2026-12-01T08:00:00Z"})
sourceraw docstring

verify-webhookclj

(verify-webhook raw-body signature secret)

Checks the X-SmsGora-Signature header (HMAC-SHA256 of the raw body) before you trust a webhook call.

Checks the X-SmsGora-Signature header (HMAC-SHA256 of the raw body) before you trust a webhook call.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close