Skip to main content

Module content

Module content 

Source
Expand description

Ghost Content API client.

Provides read-only access to published Ghost content: posts, pages, tags, authors, tiers, and site settings.

§Example

use ghost_io_api::auth::content::ContentApiKey;
use ghost_io_api::client::content::{GhostContentClient, BrowsePostsParams};

let key = ContentApiKey::new("22444f78447824223cefc48062")?;
let client = GhostContentClient::new("https://demo.ghost.io", key)?;

let posts = client.browse_posts(BrowsePostsParams::default()).await?;
println!("Found {} posts", posts.posts.len());

Structs§

AuthorResponse
Response envelope for single-author read requests.
AuthorsResponse
Response envelope for browse-authors requests.
BrowsePostsParams
Parameters for browsing posts.
GhostContentClient
Read-only client for the Ghost Content API.
PageResponse
Response envelope for single-page read requests.
PagesResponse
Response envelope for browse-pages requests.
PostResponse
Response envelope for single-post read requests.
PostsResponse
Response envelope for browse-posts requests.
SettingsResponse
Response envelope for the settings endpoint.
TagResponse
Response envelope for single-tag read requests.
TagsResponse
Response envelope for browse-tags requests.
Tier
A Ghost membership tier (formerly “product”).
TiersResponse
Response envelope for browse-tiers requests.

Type Aliases§

BrowseAuthorsParams
Parameters for browsing authors.
BrowsePagesParams
Parameters for browsing a collection (pages, tags, authors, tiers).
BrowseTagsParams
Parameters for browsing tags.
BrowseTiersParams
Parameters for browsing tiers.