Liking cljdoc? Tell your friends :D

clj-contentful


*config*clj

source

array?clj

(array? m)
source

assetclj

(asset config asset-id)

Gets a single asset. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/assets/asset

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets a single asset.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/assets/asset

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

asset?clj

(asset? m)
source

assetsclj

(assets config)

Gets all assets of a space. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/assets/assets-collection

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets all assets of a space.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/assets/assets-collection

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

cda-env-requestclj

(cda-env-request config & [subpath query-params])

Makes a GET request to the environment set in config. Returns the response body parsed as a map.

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Makes a GET request to the environment set in config. Returns the response
body parsed as a map.

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

cda-requestclj

(cda-request config & [subpath query-params])

Makes a GET request to the Content Delivery API. Returns the response body parsed as a map.

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Makes a GET request to the Content Delivery API. Returns the response body
parsed as a map.

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

cda-serverclj

source

content-typeclj

(content-type config content-type-id)

Gets a single content type. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-types/content-type

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets a single content type.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-types/content-type

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

content-typesclj

(content-types config)

Gets the content model of a space. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-types/content-model

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets the content model of a space.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-types/content-model

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

defopcljmacro

(defop name-sym & body)

Same as defn, but wraps the defined function in another that provides the first argument whenever config is thread-bound.

Same as defn, but wraps the defined function in another that provides the
first argument whenever *config* is thread-bound.
sourceraw docstring

entriesclj

(entries config & [query-params])

Gets all entries of a space. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/entries/entries-collection

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets all entries of a space.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/entries/entries-collection

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

entryclj

(entry config entry-id)

Gets a single entry. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/entries/entry

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets a single entry.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/entries/entry

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

entry?clj

(entry? m)
source

get-spaceclj

(get-space config)

Gets the space referred to by config. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/spaces/space

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets the space referred to by config.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/spaces/space

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

handle-arrayclj

(handle-array m)

Returns just the :items from an Array response.

Returns just the :items from an Array response.
sourceraw docstring

link?clj

(link? m)
source

locale?clj

(locale? m)
source

localesclj

(locales config)

Gets all locales of a space. https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/locales/locale-collection

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Gets all locales of a space.
https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/locales/locale-collection

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

parse-configclj

(parse-config config)

If config is a vector of [space-id access-token & [environment]], converts it to a map. Otherwise, returns config.

If config is a vector of [space-id access-token & [environment]], converts it
to a map. Otherwise, returns config.
sourceraw docstring

requestclj

(request config f & [path query-params])

Makes a request to Contentful's servers. f determines the method used. f should be one of clj-http.client/get, /put, etc., or a compatible function. https://www.contentful.com/developers/docs/references/authentication/

When used within the dynamic scope of with-config, the initial config argument is automatically provided.

Makes a request to Contentful's servers. f determines the method used. f
should be one of clj-http.client/get, /put, etc., or a compatible function.
https://www.contentful.com/developers/docs/references/authentication/

When used within the dynamic scope of `with-config`, the initial
`config` argument is automatically provided.
sourceraw docstring

space?clj

(space? m)
source

symbol?clj

(symbol? m)
source

typeclj

(type m)

Returns the type of a map in the JSON response that has a :type key in (:sys m) or in m.

Returns the type of a map in the JSON response that has a :type key in
(:sys m) or in m.
sourceraw docstring

type-handlersclj

source

with-configcljmacro

(with-config config & body)

Binds the dynamic var clj-contentful/config to config, allowing code inside the body to forgo passing config to any function defined with defop.

Binds the dynamic var clj-contentful/*config* to config, allowing code inside
the body to forgo passing config to any function defined with defop.
sourceraw docstring

wrap-opclj

(wrap-op f)

Wraps f in a function that provides the first argument whever config is thread-bound.

Wraps f in a function that provides the first argument whever *config* is
thread-bound.
sourceraw docstring

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

× close