Liking cljdoc? Tell your friends :D

clj-tda.auth


generate-access-tokenclj

(generate-access-token {:keys [oauth-consumer-key redirect-uri auth-code]
                        :as tokens})

Given a map containing the :oauth-consumer-key, :redirect-uri, and :auth-code, returns an updated map with access and refresh token information. It's unlikely you want to call this function directly. You probably want login instead, unless you have generated the :auth-code in some other fashion.

Given a map containing the `:oauth-consumer-key`, `:redirect-uri`,
and `:auth-code`, returns an updated map with access and refresh
token information. It's unlikely you want to call this function
directly. You probably want `login` instead, unless you have
generated the `:auth-code` in some other fashion.
sourceraw docstring

loginclj

(login {:keys [driver-factory api-key redirect-uri]})

Logs the user in with a browser interface and returns tokens that must be supplied to other API calls. The driver parameter specifies an Etaoin driver that must be created beforehand, allowing callers the choice of web driver (e.g., Geckodriver, Chrome, etc.).

Logs the user in with a browser interface and returns tokens that
must be supplied to other API calls. The `driver` parameter
specifies an Etaoin driver that must be created beforehand, allowing
callers the choice of web driver (e.g., Geckodriver, Chrome, etc.).
sourceraw docstring

refresh-access-tokenclj

(refresh-access-token {:keys [refresh-token refresh-token-refresh-time
                              oauth-consumer-key]
                       :as tokens})

Takes a map of tokens and returns an updated map with the access token refreshed. Note that if the refresh token is already expired, this calls refresh-refresh-token, which might call login and present an interactive UI to the user. Thus, don't count on it to be fast.

Takes a map of tokens and returns an updated map with the access
token refreshed. Note that if the refresh token is already expired,
this calls `refresh-refresh-token`, which might call `login` and
present an interactive UI to the user. Thus, don't count on it to be
fast.
sourceraw docstring

refresh-refresh-tokenclj

(refresh-refresh-token
  {:keys [refresh-token refresh-token-expiry oauth-consumer-key] :as tokens})

Takes a map of tokens and returns an updated map with the refresh token refreshed. Note that if the refresh token is completely expired, this function calls login, which presents the user with an interactive UI. Thus, this function may not execute quickly or behind the scenes.

Takes a map of tokens and returns an updated map with the refresh
token refreshed. Note that if the refresh token is completely
expired, this function calls `login`, which presents the user with an
interactive UI. Thus, this function may not execute quickly or
behind the scenes.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close