(api-request args)
(api-request args respond raise)
A function to handle API requests.
Can be configured with setup!
.
Will attempt to configure itself if not previously configured.
May also be replaced by a custom stack of middleware constructed in a different way.
This is what generated code invokes, which means that customizations here
will be present in the generated interface.
A function to handle API requests. Can be configured with `setup!`. Will attempt to configure itself if not previously configured. May also be replaced by a custom stack of middleware constructed in a different way. This is what generated code invokes, which means that customizations here will be present in the generated interface.
(setup! config)
Changes api-request
to be a configured client.
config is provider specific,
it should contain :client_id
and :client_secret
for oauth2,
or :apikey
.
See config/make-client for more options.
Changes `api-request` to be a configured client. config is provider specific, it should contain `:client_id` and `:client_secret` for oauth2, or `:apikey`. See config/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 |