API Reference yt_potion v#1.0.0

Copy Markdown

Modules

Behaviour for pluggable authentication strategies.

Default YtPotion.Auth strategy: adds the YouTube API key as a key query parameter, appending to any params already set on the request.

The Req integration point: reads configuration, applies the configured YtPotion.Auth strategy, issues the request, and routes the response through YtPotion.Parser.

Runtime lookup for yt_potion's configuration.

Error struct returned by any yt_potion call that can fail at runtime.

Parses a decoded YouTube Data API response body into either the list of result items or a YtPotion.Error describing what the API rejected.

Macro for declaring a YouTube Data API resource from a {path, actions} pair, replacing one hand-written module + macro per endpoint.

The YouTube Data API channels resource.

The YouTube Data API search resource.

The YouTube Data API videos resource.