Liking cljdoc? Tell your friends :D

clo-wp.core


api-deleterclj

(api-deleter wordpress-connection resource)

api-getterclj

(api-getter wordpress-connection resource)
(api-getter wordpress-connection endpoint-path extraction-items)

api-mapperclj

(api-mapper wordpress-connection
            resource
            key-extraction-item
            value-extraction-item)

api-updaterclj

(api-updater wordpress-connection resource)
(api-updater wordpress-connection endpoint-path data)
(api-updater wordpress-connection endpoint-path item-key item-value)

build-api-endpointclj

(build-api-endpoint url)
(build-api-endpoint url ep)

Function used generally for internal use to build endpoint paths.

Function used generally for internal use to build endpoint paths.
raw docstring

connectclj

(connect url username password)

Attempts to connect to a site which has WordPress installed. Takes a url, username, and password and either throws in the case some issue with said credentials is encountered, or gives back a new WordPressConnection.

Attempts to connect to a site which has WordPress installed. Takes a 
url, username, and password and either throws in the case some issue
with said credentials is encountered, or gives back a new WordPressConnection.
raw docstring

defwpcljmacro

(defwp endpoint-name path)
(defwp endpoint-name path callback)

delete-from-wordpressclj

(delete-from-wordpress wordpress-connection endpoint-path)
(delete-from-wordpress wordpress-connection endpoint-path context)

Raw API call for deleting data from a site that has WordPress installed.

Takes an instantiated WordPressConnection, the path of an endpoint (formatted with an initial /), and the context one wishes to access the endpoint with. Legitimate contexts include :view :edit and :embed. Certain contexts allow access to additional information in the response, for example allowing gets on posts to recieve the raw markup (including shortcodes) when the edit parameter is passed instead of view, which will only return 'rendered' markup.

Primary for internal use or for extending the library.

Raw API call for deleting data from a site that has WordPress installed.

Takes an instantiated WordPressConnection, the path of an endpoint (formatted with an initial /), and
the context one wishes to access the endpoint with. Legitimate contexts include :view :edit and :embed.
Certain contexts allow access to additional information in the response, for example allowing gets 
on posts to recieve the raw markup (including shortcodes) when the edit parameter is passed instead of
view, which will only return 'rendered' markup.

Primary for internal use or for extending the library.
raw docstring

delete-resourceclj

(delete-resource resource-names wordpress-connection)

Takes an authenticated WordPressConnection and a content-item id and deletes a content-item. returns the JSON object of the now deleted content-item.

Takes an authenticated WordPressConnection and a content-item id and deletes a content-item.
returns the JSON object of the now deleted content-item.
raw docstring

dispatch-resourceclj

(dispatch-resource resource-names wordpress-connection)
(dispatch-resource resource-names wordpress-connection arg-map)
(dispatch-resource resource-names wordpress-connection arg-map method)
(dispatch-resource content-items wordpress-connection arg-map method callback)

endpathizeclj

(endpathize items)

get-from-wordpressclj

(get-from-wordpress wordpress-connection endpoint-path)
(get-from-wordpress wordpress-connection endpoint-path context)
(get-from-wordpress wordpress-connection endpoint-path context page)

Raw API call for receiving data from a site that has WordPress installed.

Takes an instantiated WordPressConnection, the path of an endpoint (formatted with an initial /), and the context one wishes to access the endpoint with. Legitimate contexts include :view :edit and :embed. Certain contexts allow access to additional information in the response, for example allowing gets on posts to recieve the raw markup (including shortcodes) when the edit parameter is passed instead of view, which will only return 'rendered' markup.

Primary for internal use or for extending the library.

Raw API call for receiving data from a site that has WordPress installed.

Takes an instantiated WordPressConnection, the path of an endpoint (formatted with an initial /), and
the context one wishes to access the endpoint with. Legitimate contexts include :view :edit and :embed.
Certain contexts allow access to additional information in the response, for example allowing gets 
on posts to recieve the raw markup (including shortcodes) when the edit parameter is passed instead of
view, which will only return 'rendered' markup.

Primary for internal use or for extending the library.
raw docstring

get-resourceclj

(get-resource resource-names wordpress-connection)

Takes an WordPressConnection and gets all the content-item resources as JSON.

Takes an WordPressConnection and 
gets all the content-item resources as JSON.
raw docstring

get-site-informationclj

(get-site-information wordpress-connection)

Gets raw information about a site that has WordPress installed.

Takes an instantiated WordPressConnection and returns the informations from the /wp-json endpoint for us.

Generally not the most useful thing in the world unless checking for extensions on the site itself.

Gets raw information about a site that has WordPress installed.

Takes an instantiated WordPressConnection and returns the informations from
the /wp-json endpoint for us.

Generally not the most useful thing in the world unless checking for extensions
on the site itself.
raw docstring

has-wordpress-apiclj

(has-wordpress-api url)

Takes a url and makes sure that the WP Rest API is on a website.

Takes a url and makes sure that the WP Rest API is on a website.
raw docstring

post-resourceclj

(post-resource resource-names wordpress-connection arg-map)

Takes an authenticated WordPressConnection and content-item id to update a content-item with a map of attributes to be updated. Read the WordPress API documentation to see information on the schema.

Takes an authenticated WordPressConnection and content-item id to update a content-item 
with a map of attributes to be updated. Read the WordPress API documentation
to see information on the schema.
raw docstring

post-to-wordpressclj

(post-to-wordpress wordpress-connection endpoint-path data)
(post-to-wordpress wordpress-connection endpoint-path context data)

Raw API call for posting data from a site that has WordPress installed.

Takes an instantiated WordPressConnection, the path of an endpoint (formatted with an initial /), and the context one wishes to access the endpoint with. Legitimate contexts include :view :edit and :embed. Certain contexts allow access to additional information in the response, for example allowing gets on posts to recieve the raw markup (including shortcodes) when the edit parameter is passed instead of view, which will only return 'rendered' markup.

Primary for internal use or for extending the library.

Raw API call for posting data from a site that has WordPress installed.

Takes an instantiated WordPressConnection, the path of an endpoint (formatted with an initial /), and
the context one wishes to access the endpoint with. Legitimate contexts include :view :edit and :embed.
Certain contexts allow access to additional information in the response, for example allowing gets 
on posts to recieve the raw markup (including shortcodes) when the edit parameter is passed instead of
view, which will only return 'rendered' markup.

Primary for internal use or for extending the library.
raw docstring

special-stringizeclj

(special-stringize x)

str-itemcljmultimethod


url-extraction-schemeclj

(url-extraction-scheme item)

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

× close