Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Clojure client for IronMQ
Clojure
Branch: master
Failed to load latest commit information.
src/iron_mq_clojure Swapping project-id/token, retries on 503, version bump.
.gitignore Initial implementation
LICENSE Create LICENSE
README.md
project.clj Swapping project-id/token, retries on 503, version bump.

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.