(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.
(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.).
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close