         p12-file (get-p12 instance-id auth-token)]
     (get-filtered-surveys {:host host
                            :iam-account iam-account
-                           :p12-path (.getAbsolutePath p12-file)
-                           }
+                           :p12-path (.getAbsolutePath p12-file)}
                           email
                           "24109115"))
+
+  (def auth-token (System/getenv "GITHUB_API_KEY"))
+  (def instance-map (get-instance-map auth-token))
+
+  (remote-api-spec instance-map "akvoflow-uat1")
+  (with-remote-api (remote-api-spec instance-map "akvoflow-uat1")
+    (get-survey-definition "" "31929121"))
+
+  )

        p12-file (get-p12 instance-id auth-token)]
    (get-filtered-folders {:host host
                           :iam-account iam-account
                           :p12-path (.getAbsolutePath p12-file)
                           }
                          email
                          "27009117"))

#_(let [auth-token ""
        email ""
        ;;instance-map (get-instance-map auth-token)
        alias-map (get-alias-map instance-map)
        instance-id (get alias-map "uat1")
        host (str instance-id ".appspot.com")

(ns api.core
  (:import [com.gallatinsystems.common Constants]
           [com.gallatinsystems.survey.dao.SurveyDAO]
           [com.gallatinsystems.user.dao UserDao]
           [com.google.appengine.tools.remoteapi RemoteApiInstaller RemoteApiOptions]
           [com.google.apphosting.utils.config AppEngineWebXmlReader]
           [java.io ByteArrayInputStream]
           [java.time.format DateTimeFormatter]
           [org.akvo.flow.api.dao FolderDAO SurveyDAO]
           [org.apache.commons.codec.binary Base64])
  (:require [clj-http.client :as http]
            [clojure.java.io :as io]
            [clojure.string :as str]))
