(delete paths & {:keys [api-key user pass] :or {api-key nil user nil pass nil}})
Deletes files with the given paths.
Deletes files with the given paths.
(info & {:keys [api-key user pass] :or {api-key nil user nil pass nil}})
Retrieves information about a site. You can give the site/user name without password and it will return the info, or with credentials it will give the info about that user's site.
Retrieves information about a site. You can give the site/user name without password and it will return the info, or with credentials it will give the info about that user's site.
(key user pass)
Returns an API key that you can use for the API instead of login credentials. It will automatically generate a new API key if one doesn't exist yet for your site.
Similarly to list
, it's expected to use the namespace so it doesn't overlap with the standard key
, or rename the function.
Returns an API key that you can use for the API instead of login credentials. It will automatically generate a new API key if one doesn't exist yet for your site. Similarly to `list`, it's expected to use the namespace so it doesn't overlap with the standard `key`, or rename the function.
(list {:keys [api-key user pass path]
:or {api-key nil user nil pass nil path nil}})
Provides a list of files on your site. If you provide a path it will list all of the files in that directory.
It's expected you'll use a namespace alias so it doesn't overlap with the standard library's list
. Something like neo/list
. You could also rename it in the require
like (require '[neocities-clj.core :rename {list neo-list}])
.
Provides a list of files on your site. If you provide a path it will list all of the files in that directory. It's expected you'll use a namespace alias so it doesn't overlap with the standard library's `list`. Something like `neo/list`. You could also rename it in the `require` like `(require '[neocities-clj.core :rename {list neo-list}])`.
(set-credentials user pass)
A helper function that when given credentials, returns all of the functions with the credentials set.
A helper function that when given credentials, returns all of the functions with the credentials set.
(set-key api-key)
Convenience function to set the API key in functions requiring credentials.
Convenience function to set the API key in functions requiring credentials.
(upload paths & {:keys [api-key user pass] :or {api-key nil user nil pass nil}})
Given a map of server paths to local file paths, uploads those local files to the corresponding server paths.
Given a map of server paths to local file paths, uploads those local files to the corresponding server paths.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close