Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Clojure library for accessing the Amazon AWIS API
branch: master

README.md

clj-amazon-awis

Build Status

A Clojure library for the Amazon Alexa Web Information Services (AWIS) API. It's a very light wrapper around the API that returns the response XML as a parsed struct-map.

Usage

Up to date Leiningen and Maven configurations are on the Clojars page.

Some examples

(require '[clj-amazon-awis.core :as awis])

(def auth {:aws-access-key "YOUR ACCESS KEY" :aws-secret-key "YOUR SECRET KEY"})

(awis/url-info {:response-group "UsageStats" :url "http://clojure.org"} auth)

(awis/traffic-history {:response-group "History" :url "http://clojure.org"} auth)

(awis/category-browse {:response-group "Categories" :path "Top/Arts"} auth)

(awis/category-listings {:response-group "Listings" :path "Top/Arts"} auth)

(awis/sites-linking-in {:response-group "SitesLinkingIn" :url "http://clojure.org"} auth)

The Amazon AWIS documentation is the best source for available options.

Also see the Marginalia docs.

Development

Tests use Midje, so to run the test install the Leiningen plugin for midge and run lein midje.

License

Copyright (C) 2012 Bruz Marzolf

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.