Repository navigation
v3.3.0
✨ Added
- getShoppableVideoPlayerCollectionMetadata — a new BambuserSDK API for retrieving collection metadata. It supports fetching either by playlist/page ID or by SKU, and returns a BambuserCollectionMetadata:
data class BambuserCollectionMetadata(
val videoMetadataList: List,
val pagination: Pagination?,
)
data class VideoMetadata(
val videoId: String, // Unique video identifier
val preview: String?, // Preview image URL
val title: String?, // Video title
val length: Int?, // Video length
val hasAudio: Boolean?, // Whether the video has an audio track
)
data class Pagination(
val pageSize: Int?, // Number of videos per page
val total: Int?, // Total number of videos
val totalPages: Int?, // Total number of pages
val page: Int?, // Current page number
)
- getShoppableVideoPlayerCollection — deprecated in favor of getShoppableVideoPlayerCollectionMetadata. The previously returned BambuserCollection (which exposed only a videoIdList) is likewise deprecated in favor of
BambuserCollectionMetadata, which provides full per-video metadata instead of just IDs. Migrate with:
// Before:
getShoppableVideoPlayerCollection(collectionInfo, pageSize, page)
// After:
getShoppableVideoPlayerCollectionMetadata(collectionInfo, pageSize, page)