(api-call {:keys [params client-options api-key method endpoint out-ch
throw-on-error?]
:or {params {} client-options {} api-key (api-key)}
:as opts})
Call an API method on Hubspot. If an output channel is supplied, the method will place the result in that channel; if not, returns synchronously.
Call an API method on Hubspot. If an output channel is supplied, the method will place the result in that channel; if not, returns synchronously.
(defapi sym method)
Generates a synchronous and async version of the same function.
Generates a synchronous and async version of the same function.
(delete-req endpoint__10634__auto__)
(delete-req endpoint__10634__auto__ opts__10635__auto__)
(get-req endpoint__10634__auto__)
(get-req endpoint__10634__auto__ opts__10635__auto__)
(opts?)
(opts? params-spec)
Produces a spec that will validate the options. The zero-arity version does not
validate the :params
map--when given a single argument (a spec), it will be
used to spec the :params
.
Produces a spec that will validate the options. The zero-arity version does not validate the `:params` map--when given a single argument (a spec), it will be used to spec the `:params`.
(patch-req endpoint__10634__auto__)
(patch-req endpoint__10634__auto__ opts__10635__auto__)
(post-req endpoint__10634__auto__)
(post-req endpoint__10634__auto__ opts__10635__auto__)
(put-req endpoint__10634__auto__)
(put-req endpoint__10634__auto__ opts__10635__auto__)
(request-options? x)
Is the argument a valid request options map?
Is the argument a valid request options map?
(use-api-key! s)
Permanently sets a base api key. The key can still be overridden on a per-thread basis using with-api-key.
Permanently sets a base api key. The key can still be overridden on a per-thread basis using with-api-key.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close