Liking cljdoc? Tell your friends :D

Pushover Clj

This is a Clojure library to talk to the Pushover API. It uses Martian to build the requests.

Usage

Include it in your project:

{:deps {com.monkeyprojects/pushover-clj {:mvn/version 0.1.0-SNAPSHOT}}}

The functionality can be found in namespace monkey.pushover.core. First create a client, then invoke the post-message function:

(require '[monkey.pushover.core :as p])

;; Create a client with default opts
(def client (p/make-client {}))

;; Post a message
(p/post-message client {:token "secret-app-token"
                        :user "dest-user-id"
			:message "Hi, this is a message from pushover-clj"!})

We use HttpKit as a backend so the requests return a future. It's up to you to defer it or do something else with it.

TODO

  • Add support for attachments
  • Add other API requests
  • Allow to specify the token once on client creation instead of with each call
  • Integration tests

License

Copyright (c) 2024 by Monkey Projects BV

GPL v3 License

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close