Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/honza/gauges-clj


https://github.com/honza/gauges-clj

Last synced: about 6 hours ago
JSON representation

Awesome Lists containing this project

README

        

gauges-clj
==========

A client library for Gaug.es.

Install
-------

Available from Clojars:

``` clojure
[gauges-clj "0.1.0"]
```

Usage
-----

``` clojure
(ns your-app
(:require [gauges-clj.core :as g]))

(def gauge {:api-key " {}
{:people 9,
:date 2013-04-26,
:urls {:newer nil,
:older https://secure.gaug.es/gauges//traffic?date=2013-03-01},
:views 563,
:traffic [{:people 1, :date 2013-04-01, :views 3}
{:people 3, :date 2013-04-02, :views 55}
...
{:people 0, :date 2013-04-25, :views 0}
{:people 0, :date 2013-04-26, :views 0}]}

(g/get-traffic gauge {:page 2})
=> {}

(g/get-traffic gauge {:date "2013-01-22"})
=> {}
```

License
-------

BSD, short and sweet