This example assumes using Spotify; is in scope and apiKey contains your Spotify API key.
1234567
usingvarclient=newSpotifyClient(apiKey);// Read the current user's saved tracks for preference and library synchronization workflows.varpage=awaitclient.Tracks.GetUsersSavedTracksAsync(limit:20,offset:0);// GetItems handles Spotify's composed paging schema and returns typed SavedTrackObject values.vartracks=page.GetItems();