【发布时间】:2016-11-05 14:01:13
【问题描述】:
这是我的代码。
(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 时,我无法解析符号:此上下文中的签名请求助手。我该如何解决这个问题?
【问题讨论】:
-
您是否出于特定原因使用 lein deps 而不是 defproject?该错误表明您的依赖项未成功包含。