Authors
Retrieve author profiles using the hive-cms SDK
Use author data for bylines, profile cards, and author directory pages.
SDK usage
import { Hive } from 'hive-cms';
const hive = new Hive();
const authors = await hive.authors.list();Example
for (const author of authors) {
console.log(author.name, author.socialLinks);
}Error handling
hive.authors.list() throws HiveApiError for invalid responses, invalid keys, or request failures.
Technical notes
- Author ids can be used with
hive.posts.list({ author: 'id' }). socialLinksis a generic key-value object.