back
loading skill details...
MANDATORY recipe for every Caffeine build that reads Spotify catalog data or drives a user's Spotify account from a canister. The supported path is the…
Spotify with spotify-client
Motoko bindings for the
Spotify Web API,
generated from Spotify's official OpenAPI spec: 15 API modules, 270
operations. The package is built in icp-cli mode (mo:ic/Types for the
management-canister interface), so it pulls ic as a dependency and pins
PocketIC in [toolchain].
Backend
Reading catalog data and driving the player. The token always comes from the
caller — the canister never holds a Spotify client secret:
import { getTrack } "mo:spotify-client/Apis/TracksApi";
import { getInformationAboutTheUsersCurrentPlayback; skipUsersPlaybackToNextTrack } "mo:spotify-client/Apis/PlayerApi";
import { type Config; defaultConfig } "mo:spotify-client/Config";don't have the plugin yet? install it then click "run inline in claude" again.