connector-tmdb

Solid

MANDATORY recipe for every Caffeine build that reads movie, TV or people data from a canister. The supported path is the `tmdb-client` mops package (The Movie Database Web API v3) over outbound HTTPS, authenticated with a v3 API key or a v4 read-access token. Hand-rolling `ic.http_request` calls to `api.themoviedb.org` is a FORBIDDEN anti-pattern — it bypasses the non-replicated-outcall safeguard, the generated JSON decoding of ~720 response models, and the credential handling. Load this skill whenever the user, spec, or any prior task mentions movies, films, TV shows, series, episodes, seasons, actors, directors, cast, crew, genres, "now playing", upcoming, popular, top-rated, trending, discover, recommendations, similar titles, posters, backdrops, ratings, watchlists, favorites, TMDb or "The Movie Database" — and BEFORE writing any code that touches a movie-data endpoint.

Data & Documents 427 stars 45 forks Updated yesterday

Install

View on GitHub

Quality Score: 86/100

Stars 20%
88
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
0
Description 5%
100

Skill Content

# Movie and TV data with `tmdb-client` Motoko bindings for [The Movie Database API](https://developer.themoviedb.org/), generated from TMDb's OpenAPI spec. **124 operations in one module** (`Apis/DefaultApi`) — the spec carries no tags, so there is nothing to split on and no nested facade. **Read this before planning the app: the read surface works, the write surface does not.** Of the 124 operations, **111 are usable** and **13 are broken**: - **12** carry a request body — 11 of the 12 POSTs plus `authenticationDeleteSession` — and go out double-wrapped (§6). - **1** read, `movieRecommendations`, throws on every successful response (§6). Plan features around catalog reads (search, details, trending, discover, now-playing) and keep favorites, ratings and watchlists out of scope unless you are prepared to fix the generator first. Use `tvSeriesRecommendations` if you need a "more like this" row; its movie counterpart is the broken one. # Backend ## 1. Add the dependency ```bash mops add tmdb-client ``` ## 2. The credential **Use the v4 read-access token and `?#bearer`. That is the only credential this client supports.** ```mo:tmdb-client auth = ?#bearer "eyJhbGciOi…" // v4 read-access token, themoviedb.org/settings/api ``` TMDb also issues a v3 API key (32 hex chars) that normally travels as an `?api_key=…` query parameter. **This client cannot send it.** The spec declares exactly one security scheme — `apiKey` in a *header* named `Authorization`, tagged `x-beare...

Details

Author
aiskillstore
Repository
aiskillstore/marketplace
Created
9 months ago
Last Updated
yesterday
Language
Python
License
None

Similar Skills

Semantically similar based on skill content — not just same category