(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(handle-array m)
Returns just the :items from an Array response.
Returns just the :items from an Array response.
(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.
(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close