This module contains all functions to access any kind of ghost related
resource, these are Config,
Authors, Errors, Mata, Posts, Settingss, Tags.
A record for the basic ghost configuration:
Config url key "v2"The version currently is always "v2", which might change later. The key to access the api has to be generated as described in:
A Ghost Error is a combined type of GhostError and HttpError.
Meta information are part of every HTTP response, except for settings
and contain pagination related information:
A record for all post related information.
A record for all setting related information.
A record for all tag related information.
Request authors from the ghost api, see https://docs.ghost.org/api/content/#authors
Params.empty
|> ...
|> authors (Config url key "v2") GotAuthorsRequest authors from the ghost api, see https://docs.ghost.org/api/content/#authors
Params.empty
|> ...
|> authorsById id (Config url key "v2") GotAuthorsRequest authors from the ghost api, see https://docs.ghost.org/api/content/#authors
Params.empty
|> ...
|> authorsBySlug id (Config url key "v2") GotAuthorsA clean way of initializing the basic configuration settings, that takes care of the url-ending.
Pass in a Ghost.Error and it will return a string of wheater it is
a HttpError or a ghost related Error.
Request pages from the ghost api, see https://docs.ghost.org/api/content/#pages
Params.empty
|> ...
|> pages (Config url key "v2") GotPagesRequest pages from the ghost api, see https://docs.ghost.org/api/content/#pages
Params.empty
|> ...
|> pagesById id (Config url key "v2") GotPagesRequest pages from the ghost api, see https://docs.ghost.org/api/content/#pages
Params.empty
|> ...
|> pagesBySlug id (Config url key "v2") GotPagesRequest posts from the ghost api, see https://docs.ghost.org/api/content/#posts
Params.empty
|> ...
|> posts (Config url key "v2") GotPostsRequest posts from the ghost api, see https://docs.ghost.org/api/content/#posts
Params.empty
|> ...
|> postsById id (Config url key "v2") GotPostsRequest posts from the ghost api, see https://docs.ghost.org/api/content/#posts
Params.empty
|> ...
|> postsBySlug id (Config url key "v2") GotPostsRequest tags from the ghost api, see https://docs.ghost.org/api/content/#settings
Params.empty
|> ...
|> tagsBySlug id (Config url key "v2") GotSettingsIn contrast to all other requests, you will receive a single record.
Request tags from the ghost api, see https://docs.ghost.org/api/content/#tags
Params.empty
|> Params.fields ...
|> ...
|> tags (Config url key "v2") GotTagsRequest tags from the ghost api, see https://docs.ghost.org/api/content/#tags
Params.empty
|> Params.fields ...
|> ...
|> tagsById id (Config url key "v2") GotTagsRequest tags from the ghost api, see https://docs.ghost.org/api/content/#tags
Params.empty
|> Params.fields ...
|> ...
|> tagsBySlug id (Config url key "v2") GotTags
A record for all author related information.