Skip to content

sarahhodne/context-io-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context.IO API wrapper for Clojure

Access the Context.IO API from Clojure.

Usage

(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})

Building

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

Documentation

This project uses a version of TomDoc for the docstrings. The docstring follow the 1.0.0-rc1, with one change:

The Arguments Section

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>)

Versioning

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.

License

Copyright (C) 2012 Henrik Hodne. See LICENSE for details.

About

Context.IO API wrapper for Clojure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published