Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Thin clojure wrappers for Campfire's API
Clojure
branch: master
Failed to load latest commit information.
src/clj_campfire
test/clj_campfire/test
.gitignore
.travis.yml
README.md
project.clj

README.md

clj-campfire

Very thin wrapper around 37 Signal's Campfire API for basic communication.

Usage

(def cf-settings
  {:api-token "my-token",
   :ssl true,
   :sub-domain "mycompany"})

(require '[clj-campfire.core :as cf])

(cf/message cf-settings "Room 1" "Hello")
(cf/paste cf-settings "Room 1" "lots of information here....")
(cf/play-sound cf-settings "Room 1" "rimshot")
(cf/messages cf-settings "Room 1" :limit 10)
(cf/stream-messages cf-settings "Room 1" (fn [m] (println m))) ; runs forever

You can also use a room as your arguments to the speak functions:

(def my-room (cf/room-by-name cf-settings "Room 2"))
(cf/message my-room "Hello")

Installation

clj-campfire is available as a Maven artifact Clojars.

Leiningen:

:dependencies
  [[clj-campfire "2.2.0"] ...]

Maven:

<dependency>
  <groupId>clj-campfire</groupId>
  <artifactId>clj-campfire</artifactId>
  <version>2.2.0</version>
</dependency>

License

Copyright (C) 2011 Ben Mabey and LeadTune

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php

Something went wrong with that request. Please try again.