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§
- Author
Response - Response envelope for single-author read requests.
- Authors
Response - Response envelope for browse-authors requests.
- Browse
Posts Params - Parameters for browsing posts.
- Ghost
Content Client - Read-only client for the Ghost Content API.
- Page
Response - Response envelope for single-page read requests.
- Pages
Response - Response envelope for browse-pages requests.
- Post
Response - Response envelope for single-post read requests.
- Posts
Response - Response envelope for browse-posts requests.
- Settings
Response - Response envelope for the settings endpoint.
- TagResponse
- Response envelope for single-tag read requests.
- Tags
Response - Response envelope for browse-tags requests.
- Tier
- A Ghost membership tier (formerly “product”).
- Tiers
Response - Response envelope for browse-tiers requests.
Type Aliases§
- Browse
Authors Params - Parameters for browsing authors.
- Browse
Pages Params - Parameters for browsing a collection (pages, tags, authors, tiers).
- Browse
Tags Params - Parameters for browsing tags.
- Browse
Tiers Params - Parameters for browsing tiers.