· 9 years ago · Nov 05, 2016, 02:06 PM
1(use '[leiningen.exec :only (deps)])
2(deps '[[org.clojure/clojure "1.4.0"]
3 [org.clojure/data.zip "0.1.1"]])
4(deps '[[clj-http "0.5.8"]
5 [org.clojars.rorygibson/clj-amazon "0.3.0-SNAPSHOT"]]
6 )
7
8(def ACCESS-KEY "my access key" )
9(def SECRET-KEY "my secret key" )
10(def ASSOCIATE-ID "my id")
11
12(def ENDPOINT "webservices.amazon.co.uk")
13
14(def signer (signed-request-helper ACCESS-KEY SECRETE-KEY ASSOCIATE-ID))
15
16(def gibson-opus-search (item-search :signer signer :search-index "Books", :keywords "Neuromancer", :associate-tag ASSOCIATE-ID, :condition "New"))
17
18(def lookup-specific-item (item-lookup :signer signer :associate-tag ASSOCIATE-ID :item-id "B0069KPSPC" :response-group "ItemAttributes,OfferSummary"))