0.3.4 • Published 9 months ago
@boldvideo/bold-js v0.3.4
Usage
First, install the library:
npm install @boldvideo/bold-js
Next, instantiate the client to establish a connection to your Bold Channel:
import { createClient } from "@boldvideo/bold-js";
const bold = createClient('YOUR_API_KEY');
Now you're able to query any of your resources from Bold. For exmaple:
// fetches your channel settings, menus and featured playlists
const settings = await bold.settings();
// fetches the latest videos
const videos = await bold.videos.list();
// fetches the latest playlists
const playlists = await bold.playlists.list();
Related Links
More Resources
Support
- Bugs or Feature Requests? Submit an issue.