Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Clojure client for IronMQ
Clojure
tree: 88d9975d3c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/iron_mq_clojure
.gitignore
README.md
project.clj

README.md

IronMQ Clojure Client

Getting Started

Add dependency to your project.clj:

[iron_mq_clojure "1.0.3"]

Require IronMQ client code:

(require '[iron-mq-clojure.client :as mq])

Create IronMQ client:

(def client (mq/create-client "YOUR_TOKEN" "YOUR_PROJECT_ID"))

For Rackspace:

(def client (mq/create-client "YOUR_TOKEN" "YOUR_PROJECT_ID" :host mq/rackspace-host))

Now you can interact with IronMQ:

(mq/post-message client "myqueue" "hello from clojure")

(let [msg (mq/get-message client "myqueue")]
  (if msg
    (do
      (println (get msg "body"))
      (mq/delete-message client "myqueue" msg))
    (println "queue is empty")))
Something went wrong with that request. Please try again.