Liking cljdoc? Tell your friends :D

stripe.http


*api-version*clj

source

*connect-account*clj

source

*token*clj

source

*url*clj

source

api-callclj

(api-call
  {:keys [params client-options token account method endpoint out-ch
          throw-on-error?]
   :or {params {} client-options {} account *connect-account* token (api-token)}
   :as opts})

Call an API method on Stripe. If an output channel is supplied, the method will place the result in that channel; if not, returns synchronously.

Call an API method on Stripe. If an output channel is supplied, the
method will place the result in that channel; if not, returns
synchronously.
sourceraw docstring

api-call?clj

Is the argument a valid api call map?

Is the argument a valid api call map?
sourceraw docstring

api-tokenclj

(api-token)
source

api-versionclj

(api-version)
source

connect-accountclj

(connect-account)
source

defapiclj/smacro

(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__10617__auto__)
(delete-req endpoint__10617__auto__ opts__10618__auto__)
source

get-reqclj

(get-req endpoint__10617__auto__)
(get-req endpoint__10617__auto__ opts__10618__auto__)
source

headersclj

(headers res)
source

method-urlclj

(method-url method)

URL for calling a method.

URL for calling a method.
sourceraw docstring

post-reqclj

(post-req endpoint__10617__auto__)
(post-req endpoint__10617__auto__ opts__10618__auto__)
source

prepare-paramsclj

(prepare-params token method params opts)

Returns a parameter map suitable for feeding in to a request to Stripe.

opts is a set of options for http-kit's client. These kick out the defaults.

params is the parameters for the stripe API calls.

Returns a parameter map suitable for feeding in to a request to Stripe.

`opts` is a set of options for http-kit's client. These kick out the
defaults.

`params` is the parameters for the stripe API calls.
sourceraw docstring

request-options?clj

(request-options? x)

Is the argument a valid request options map?

Is the argument a valid request options map?
sourceraw docstring

responseclj

(response res)
source

statusclj

(status res)
source

use-api-version!clj

(use-api-version! s)

Permanently sets an API version. The api version can still be overridden on a per-thread basis using with-api-version.

Permanently sets an API version. The api version can still be
overridden on a per-thread basis using with-api-version.
sourceraw docstring

use-connect-account!clj

(use-connect-account! s)

Permanently sets an API version. The api version can still be overridden on a per-thread basis using with-connect-account.

Permanently sets an API version. The api version can still be
overridden on a per-thread basis using with-connect-account.
sourceraw docstring

use-token!clj

(use-token! t)

Permanently sets a base token. The token can still be overridden on a per-thread basis using with-token.

Permanently sets a base token. The token can still be overridden on
a per-thread basis using with-token.
sourceraw docstring

with-api-versionclj/smacro

(with-api-version v & forms)
source

with-base-urlclj/smacro

(with-base-url u & forms)
source

with-connect-accountclj/smacro

(with-connect-account v & forms)
source

with-tokenclj/smacro

(with-token t & forms)
source

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

× close