Access the Context.IO API from Clojure.
(ns mynamespace
(:use
[context-io.oauth]
[context-io.api.two]))
;; Make an OAuth consumer
(def ^:dynamic *creds* (make-oauth-creds <key> <secret>))
;; List your accounts
(list-accounts *creds*)
;; List the first five accounts
(list-accounts *creds* :params {:limit 5})
Simply use leiningen to build the library into a jar, like this:
$ git clone git://github.com/dvyjones/context-io-clj.git
$ cd context-io-clj
$ lein jar
This project uses a version of TomDoc for the docstrings. The docstring follow the 1.0.0-rc1, with one change:
Follow the TomDoc spec. If the name of the argument begins with a colon (":"), the argument is part of a series of map-like arguments at the end:
(defn multiplex
"...
text - The string to be duplicated.
:count - The number of times to duplicate the text."
[text & {:keys [count]}]
<implementation>)
This project follows Semantic Versioning. Note that the current
version is less than 1.0, which means that the public API is not yet defined
and could change at any time. However, I am fairly certain that this will be
the public API, and the only thing I might change are the names of some of the
functions in context-io.api.two
. So experiment away, but I'd wait until at
least 0.1 or 0.2 before using this in production.
Copyright (C) 2012 Henrik Hodne. See LICENSE for details.