Skip to content

Commit

Permalink
begin work on tito namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyJayJay committed Aug 14, 2024
1 parent c85d031 commit be19d8f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/co/gaiwan/compass/tito.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(ns co.gaiwan.compass.tito
"Wrapper for the tito ticketing system admin API"
(:require
[hato.client :as hato]
[co.gaiwan.compass.config :as config]))

(def base-url "https://api.tito.io/v3")

(defn get-all-tickets
[]
(hato/get
(str base-url "/" (config/value :tito/account-slug) "/" (config/value :tito/event-slug))
{:as :auto
:query-params {"search[states][]" "complete"}
:headers {"Authorization" (str "Token token=" (config/value :tito/api-token))}}))

0 comments on commit be19d8f

Please sign in to comment.