Update the call parameters with the authentication details
Update the call parameters with the authentication details
(create-auth api_key)(create-auth client_id client_secret redirect_url)Return a state map used to manage the authentication session. Can accept either an API key for simple API access or a client ID, client secret and redirect URL for OAuth2. See https://developers.google.com/console to generate keys.
Return a state map used to manage the authentication session. Can accept either an API key for simple API access or a client ID, client secret and redirect URL for OAuth2. See https://developers.google.com/console to generate keys.
(exchange-token state code checkstate)Handle the user response from the oauth flow and retrieve a valid auth token. Returns true on success, false on failure.
Handle the user response from the oauth flow and retrieve a valid auth token. Returns true on success, false on failure.
(generate-auth-url state scopes)(generate-auth-url state scopes opts)Retrieve a URL suitable for redirecting the user to for auth permissions. Scopes should be supplied as a vector of required scopes. An optional third param is a map with access_type and approval_prompt keys.
Retrieve a URL suitable for redirecting the user to for auth permissions. Scopes should be supplied as a vector of required scopes. An optional third param is a map with access_type and approval_prompt keys.
(is-valid state)Returns true if the authentication is valid, and in date.
Returns true if the authentication is valid, and in date.
(refresh-token state)Generate a new authentication token using the refresh token
Generate a new authentication token using the refresh token
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |