            [com.google.apphosting.utils.config AppEngineWebXmlReader]
            [java.io ByteArrayInputStream])
   (:require [clojure.string :as str]
+            [clojure.java.io :as io]
             [clj-http.client :as http]))
+
+(def p12-dir (System/getProperty "java.io.tmpdir"))
+
+#_(let [auth-token ""
+        email ""
+        alias-map (get-alias-map instance-map)
+        instance-id (get alias-map "uat1")
+        host (str instance-id ".appspot.com")
+        port 443
+        iam-account (get-in instance-map [instance-id "serviceAccountId"])
+        p12-file (get-p12 instance-id auth-token)]
+    (get-filtered-surveys host iam-account (.getAbsolutePath p12-file) email))
 
 (defn get-filtered-surveys
   [host iam-account p12-path email]

                     (get-instance-props instance-id auth-token)
                     (catch clojure.lang.ExceptionInfo e)))
                 instances))))

                      :content))))
        ae-reader (AppEngineWebXmlReader. (System/getProperty "java.io.tmpdir")
                                          (.getName temp-file))]
    {:instance-id instance-id
     :properties (.getSystemProperties (.readAppEngineWebXml ae-reader))}))

(defn get-instance-map [auth-token]
  (let [instances (get-instances auth-token)]
