Liking cljdoc? Tell your friends :D

shopify.resources.client

A custom middleware stack to make Shopify API requests with clj-http.

A custom middleware stack to make Shopify API requests with clj-http.
raw docstring

*base-request-opts*clj

source

attach-response-to-resource-metadataclj

(attach-response-to-resource-metadata response)
source

convert-keywordsclj

(convert-keywords data convert-fn)
source

embed-resource-typesclj

(embed-resource-types data)
source

params->query-stringclj

(params->query-string data & [prefix])

Builds Rails-style nested query strings from param maps.

Builds Rails-style nested query strings from param maps.
sourceraw docstring

prepare-basic-auth-requestclj

(prepare-basic-auth-request req)
source

prepare-oauth2-requestclj

(prepare-oauth2-request req)
source

remove-namespaced-keysclj

(remove-namespaced-keys data)
source

wrap-attach-response-to-resource-metadataclj

source

wrap-authclj

(wrap-auth client)

If :access-token is present in the request, converts it into the appropriate auth header. Otherwise it looks for :api-key and :password to use basic auth.

If `:access-token` is present in the request, converts it into the appropriate auth header. Otherwise it looks for `:api-key` and `:password` to use basic auth.
sourceraw docstring

wrap-base-request-optsclj

(wrap-base-request-opts client)
source

wrap-dasherized-responseclj

(wrap-dasherized-response client)
source

wrap-embed-resource-types-in-responseclj

(wrap-embed-resource-types-in-response client)
source

wrap-generic-params-keyclj

(wrap-generic-params-key client)

Middleware which renames :params to :query-params when method is GET, HEAD, or DELETE. For other methods, :params becomes :form-params.

Middleware which renames `:params` to `:query-params` when method is GET, HEAD, or DELETE. For other methods, `:params` becomes `:form-params`.
sourceraw docstring

wrap-json-formatclj

(wrap-json-format client)

Middleware which forces JSON for everything, and appends .json to paths if it isn't already there.

Middleware which forces JSON for everything, and appends `.json` to paths if it isn't already there.
sourceraw docstring

wrap-query-paramsclj

(wrap-query-params client)

Middleware which converts a :query-params map into a Rails-style nested :query-string.

Middleware which converts a `:query-params` map into a Rails-style nested `:query-string`.
sourceraw docstring

wrap-remove-namespaced-keys-from-request-paramsclj

(wrap-remove-namespaced-keys-from-request-params client)
source

wrap-requestclj

(wrap-request request)

Wraps a request function with an appropriate stack of middleware.

Wraps a request function with an appropriate stack of middleware.
sourceraw docstring

wrap-retry-on-throttle-errorsclj

(wrap-retry-on-throttle-errors client)

Middleware which retries a request if it's being throttled.

Request options:

  • :retry-on-throttle-errors: whether to retry throttled requests (default true)
  • :throttle-retry-delay: how many seconds to wait between throttle retries (default 60)
  • :max-throttle-retries: how many times to retry before giving up and returning the error response (default 12)

In the response:

  • :throttle-retry-count: number of retries (key is absent when there were no retries)
Middleware which retries a request if it's being throttled.

Request options:

* `:retry-on-throttle-errors`: whether to retry throttled requests (default `true`)
* `:throttle-retry-delay`: how many seconds to wait between throttle retries (default `60`)
* `:max-throttle-retries`: how many times to retry before giving up and returning the error response (default `12`)

In the response:

* `:throttle-retry-count`: number of retries (key is absent when there were no retries)
sourceraw docstring

wrap-shopclj

(wrap-shop client)

Middleware converting a :shop option into :server-name.

Middleware converting a `:shop` option into `:server-name`.
sourceraw docstring

wrap-sslclj

(wrap-ssl client)

Middleware defaulting requests to SSL.

Middleware defaulting requests to SSL.
sourceraw docstring

wrap-underscored-request-paramsclj

(wrap-underscored-request-params client)
source

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

× close