Adds Yodlee2 Option.

This commit is contained in:
Bryce Covert
2020-12-22 08:45:12 -08:00
parent c66244a8fb
commit c28bd9635d
11 changed files with 842 additions and 17 deletions

View File

@@ -26,18 +26,22 @@
false)}))
(def base-headers {"Api-Version" "1.1"
"loginName" (:yodlee-client-user-new env)
"Cobrand-Name" (:yodlee-cobrand-name env)
"Content-Type" "application/json"})
(defn login-cobrand []
(-> (str (:yodlee-base-url env) "/auth/token")
(client/post (merge {:headers (assoc base-headers
"Content-Type" "application/x-www-form-urlencoded")
:body (str "clientId=" (:yodlee-client-id env) " &secret=" (:yodlee-client-secret env))
(-> (str (:yodlee-base-url env) "/cobrand/login")
(client/post (merge {:headers base-headers
:body
(json/write-str {:cobrand {:cobrandLogin (:yodlee-cobrand-login env)
:cobrandPassword (:yodlee-cobrand-password env)
:locale "en_US"}})
:as :json}
other-config)
)
:body))
:body
:session
:cobSession))
(defn login-user