/// <summary> /// Gets Spotify catalog information about the tracks of the album matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.spotify.com/web-api/get-albums-tracks/</cref> /// </see> public SocialHttpResponse GetAlbumTracks(SpotifyGetAlbumTracksOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (String.IsNullOrWhiteSpace(options.AlbumId)) { throw new PropertyNotSetException(nameof(options.AlbumId)); } return(Client.DoHttpGetRequest($"/v1/albums/{options.AlbumId}/tracks", options)); }
/// <summary> /// Gets Spotify catalog information about the tracks of the album matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="SpotifyGetAlbumTracksResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.spotify.com/web-api/get-albums-tracks/</cref> /// </see> public SpotifyGetAlbumTracksResponse GetAlbumTracks(SpotifyGetAlbumTracksOptions options) { return(SpotifyGetAlbumTracksResponse.ParseResponse(Raw.GetAlbumTracks(options))); }