A Clojure library designed to send SMS messages through posta SMS API Platfotm.
To install, add the following dependency to your project.clj file:
[posta-sms "0.1.0"]
To get started with using posta-sms, require posta-sms.client and posta-sms.message in your project:
(ns postasms.sample
(:require [posta-sms.client :as sms-client]
[posta-sms.message :as sms-message]))
(def client (sms-client/create "YOUR COMPANY ID"))
(sms-client/send-sms! client messages)
Note
messages are created this way:
(sms-message/create (:number %) (:text %) (:id %) (:schedule %))
(sms-client/check-sms-status (:smsRequestId send-sms-request))
Parameters
smsRequestId: this ID comes in the response to the sending sms request.
Copyright © 2018 Alejandro Winkler
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close