Liking cljdoc? Tell your friends :D

hubspot.http


*api-key*clj

source

api-callclj

(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.
sourceraw docstring

api-keyclj

(api-key)
source

defapicljmacro

(defapi sym method)

Generates a synchronous and async version of the same function.

Generates a synchronous and async version of the same function.
sourceraw docstring

delete-reqclj

(delete-req endpoint__10634__auto__)
(delete-req endpoint__10634__auto__ opts__10635__auto__)
source

get-http-methodclj

(get-http-method k)
source

get-reqclj

(get-req endpoint__10634__auto__)
(get-req endpoint__10634__auto__ opts__10635__auto__)
source

opts?clj

(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`.
sourceraw docstring

parse-response-bodyclj

(parse-response-body res)
source

patch-reqclj

(patch-req endpoint__10634__auto__)
(patch-req endpoint__10634__auto__ opts__10635__auto__)
source

post-reqclj

(post-req endpoint__10634__auto__)
(post-req endpoint__10634__auto__ opts__10635__auto__)
source

prepare-paramsclj

(prepare-params api-key method params)
source

put-reqclj

(put-req endpoint__10634__auto__)
(put-req endpoint__10634__auto__ opts__10635__auto__)
source

request-options?clj

(request-options? x)

Is the argument a valid request options map?

Is the argument a valid request options map?
sourceraw docstring

use-api-key!clj

(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.
sourceraw docstring

with-api-keycljmacro

(with-api-key k & forms)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close