This commit is contained in:
2024-04-27 11:05:16 -07:00
parent 3e4a2b7322
commit d45c91d55c
5 changed files with 122 additions and 71 deletions

View File

@@ -11,6 +11,11 @@
(def client-id (-> env :plaid :client-id))
(def secret-key (-> env :plaid :secret-key))
(def base-url "https://production.plaid.com")
(def client-id "61bfab05f7e762001b323f79")
(def secret-key "2be026ca5e7f7e9f23f2fb4d7c914d")
(defn get-link-token [client-code]
(-> (client/post (str base-url "/link/token/create")
@@ -49,8 +54,16 @@
:body (json/write-str {"client_id" client-id
"secret" secret-key
"public_token" public-token})})
:body
(doto println)))
:body))
(defn get-item [access-token ]
(-> (client/post (str base-url "/item/get")
{:as :json
:headers {"Content-Type" "application/json"}
:body (json/write-str {"client_id" client-id
"secret" secret-key
"access_token" access-token})})
:body))
(defn get-accounts [access-token ]
(-> (client/post (str base-url "/accounts/get")