The happyapi.providers.google namespace contains convenience helpers to make getting started with happyapi easier.
You can absolutely go without them and directly use
setup/make-client
, if it better suits your use case.
The happyapi.providers.google namespace contains convenience helpers to make getting started with happyapi easier. You can absolutely go without them and directly use `setup/make-client`, if it better suits your use case.
(api-request args)
(api-request args respond raise)
The default definition of the api-request
var.
api-request
is meant to be overridden by a real implementation.
The simplest way is calling setup!
. This default definition is
just a convenience helper.
It will attempt to configure itself by calling setup!
, if
api-request
is not already configured.
If your requirements are more complex, you may want to call
setup/make-client
directly or create your own client from scratch.
Since the generated functions from happyapi.google
just create
requests-as-data, you can also work completely without the global
happyapi.providers.google/api-request
function and use your client
function directly. Depending on your use case you will even have to
-- e.g. when you need multiple different google API clients
simultaneously.
The default definition of the `api-request` var. `api-request` is meant to be overridden by a real implementation. The simplest way is calling `setup!`. This default definition is just a convenience helper. It will attempt to configure itself by calling `setup!`, if `api-request` is not already configured. If your requirements are more complex, you may want to call `setup/make-client` directly or create your own client from scratch. Since the generated functions from `happyapi.google` just create requests-as-data, you can also work completely without the global `happyapi.providers.google/api-request` function and use your client function directly. Depending on your use case you will even have to -- e.g. when you need multiple different google API clients simultaneously.
(setup! config)
Changes the api-request
to be a configured client.
The config is provider specific. It should contain :client_id
and
:client_secret
for OAuth2, or :apikey
. See setup/make-client
for more options.
Changes the `api-request` to be a configured client. The config is provider specific. It should contain `:client_id` and `:client_secret` for OAuth2, or `:apikey`. See `setup/make-client` for more options.
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 |