这是我的代码。无法解决Clojure中的符号错误?
(use '[leiningen.exec :only (deps)])
(deps '[[org.clojure/clojure "1.4.0"]
[org.clojure/data.zip "0.1.1"]])
(deps '[[clj-http "0.5.8"]
[org.clojars.rorygibson/clj-amazon "0.3.0-SNAPSHOT"]]
)
(def ACCESS-KEY "my access key")
(def SECRET-KEY "my secret key")
(def ASSOCIATE-ID "my id")
(def ENDPOINT "webservices.amazon.co.uk")
(def signer (signed-request-helper ACCESS-KEY SECRETE-KEY ASSOCIATE-ID))
(def gibson-opus-search (item-search :signer signer :search-index "Books", :keywords "Neuromancer", :associate-tag ASSOCIATE-ID, :condition "New"))
(def lookup-specific-item (item-lookup :signer signer :associate-tag ASSOCIATE-ID :item-id "B0069KPSPC" :response-group "ItemAttributes,OfferSummary"))
我想在Clojure上使用亚马逊的产品api。当我在命令提示符上尝试执行lein exec时,我无法在此上下文中解析符号:signed-request helper。我该如何解决这个问题?
您是否使用lein deps代替defproject出于特定原因?该错误表明您的依赖关系未成功包含在内。 – jmargolisvt