   ([request]
      (reply request {}))
   ([request opts]
-     (xxx)))
+     (reply-core)))
 

  (:require [clojure.data.json :as json]
            [layzee.adapters.twitter.search :refer :all :as twitter]
            [layzee.adapters.settings :as settings]
            [layzee.use-cases.lazy-web :as lazy-web]))

(def content-type-plain-text {"Content-Type" "text/plain"})
(def content-type-json {"Content-Type" "application/json"})

  (fn [opts]
    (twitter/lazy-web settings/oauth-credential opts)))

;;(replies/to {:id "636840679272873984" :screen-name "iamkey"})

(defn- search[]
  (lazy-web/run { :search-adapter-fn lazy-web-search }))

(defn- reply-core[]
  (try
   (let [reply (search)]
     (ok { "X-Timestamp" (str (:timestamp reply))} (:result reply)))
   (catch Exception e (err (str "caught exception: " (.getMessage e))))))

