 (ns googlica.core
   (:gen-class)
   (:require [cheshire.core :as json]
-            [clojure.string :as s]
-            [clojure.set :as st]
+            [clojure.string :as str]
+            [clojure.set :as set]
             [me.raynes.fs :as fs]
             [clj-http.client :as http]
             [fipp.clojure :as f]

(defn generate-function-name
  "Generates a symbol in the form of 'verb-resource', from a method map."
  [method]
  (let [[_ resource-name method-name] (s/split (:id method) #"\.")]
    (-> (str method-name "-" resource-name)
        ->kebab-case-symbol)))


        template->path-vector'
        (fn [result-acc template matches]
          (if-some [[match arg] (first matches)]
            (let [[pre post] (str/split template
                                      (re-pattern (str "\\{" arg "\\}")))]
              (recur (concat result-acc [pre (get args->symbols arg)])
                     post
