Catalog
-
A structure used to make requests to the Spotify catalog for top-level items such as albums, artists, tracks, playlists, and others.
Note
All request-performing methods (e.g.,getAlbum
orsearch
) use theSPTAuth
default instance session to authenticate the underlying request. If this session does not contain a valid access token, the request will result in an error. If you want to customize the request by injecting your own custom URL/API session or by decoding the response yourself, you can do so using any of the accompanying factory methods (e.g.,makeAlbumRequest
ormakeSearchRequest
) to create and return theSKRequest
instance itself.Declaration
Swift
public struct SKCatalog
-
A Spotify category representing the genres and moods available in the Spotify catalog.
See also
The Web API Category object.Declaration
Swift
public struct SKCategory : JSONDecodable
-
A structure containing a paginated collection of featured playlists, accompanied by a localized message from Spotify.
See moreDeclaration
Swift
public struct SKFeaturedPlaylists : JSONDecodable
-
A structure representing a list of recommended tracks generated from a list of Spotify seed items.
See also
The Web API Recommendations object.Declaration
Swift
public struct SKRecommendations : JSONDecodable
-
A structure representing a Spotify media item used to generate a list of recommended tracks.
See also
The Web API Recommendations Seed object.Declaration
Swift
public struct SKSeed : JSONDecodable
-
An enumeration representing the audio attributes available in
audio features.
Each attribute accepts a minimum, maximum, and target value of the appropriate type.
See moreDeclaration
Swift
public enum SKTrackAttribute