SpotifyApi.NetCore 1.0.2-alpha

Lightweight .NET Core client wrapper for the Spotify Web API

This is a prerelease version of SpotifyApi.NetCore.
There is a newer version of this package available.
See the version list below for details.
Install-Package SpotifyApi.NetCore -Version 1.0.2-alpha
dotnet add package SpotifyApi.NetCore --version 1.0.2-alpha
<PackageReference Include="SpotifyApi.NetCore" Version="1.0.2-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpotifyApi.NetCore --version 1.0.2-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Spotify API .NET Core

Lightweight .NET Core wrapper for the Spotify Web API.

  • Opinionated
  • Async by default
  • Raw responses (as dynamic)
  • MIT license

Usage

// Load config from Environment variables (for example):
// SpotifyApiClientId=(SpotifyApiClientId)
// SpotifyApiClientSecret=(SpotifyApiClientSecret)
var config = new ConfigurationBuilder()
    .AddEnvironmentVariables()
    .Build();

// HttpClient and ClientCredentials can be reused. 
// Client creds are cached and refreshed
var http = new HttpClient();
var auth = new ClientCredentialsAuthorizationApi(http, config);
var api = new ArtistsApi(http, auth);

// Get an artist by Spotify Artist Id
dynamic response = await api.GetArtist("1tpXaFf2F55E7kVJON4j4G");

See tests for more examples.

Spotify API .NET Core

Lightweight .NET Core wrapper for the Spotify Web API.

  • Opinionated
  • Async by default
  • Raw responses (as dynamic)
  • MIT license

Usage

// Load config from Environment variables (for example):
// SpotifyApiClientId=(SpotifyApiClientId)
// SpotifyApiClientSecret=(SpotifyApiClientSecret)
var config = new ConfigurationBuilder()
    .AddEnvironmentVariables()
    .Build();

// HttpClient and ClientCredentials can be reused. 
// Client creds are cached and refreshed
var http = new HttpClient();
var auth = new ClientCredentialsAuthorizationApi(http, config);
var api = new ArtistsApi(http, auth);

// Get an artist by Spotify Artist Id
dynamic response = await api.GetArtist("1tpXaFf2F55E7kVJON4j4G");

See tests for more examples.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.5.0 179 8/12/2020
3.4.0 304 7/12/2020
3.3.0 86 6/30/2020
3.2.1 178 6/25/2020
3.2.0 87 6/16/2020
3.1.0 152 5/30/2020
3.1.0-preview 85 5/29/2020
3.0.2 784 1/9/2020
3.0.1 162 1/6/2020
3.0.1-preview 287 8/11/2019
2.4.7 214 8/3/2019
2.4.6-beta 188 3/28/2019
2.4.4 203 3/22/2019
2.4.0 197 3/9/2019
2.3.9 206 2/2/2019
2.3.8 233 1/10/2019
2.3.6 266 1/8/2019
2.3.5 272 1/3/2019
2.3.3 233 1/1/2019
2.3.2 234 11/13/2018
2.2.0 228 11/5/2018
2.1.0 223 11/2/2018
2.0.2 275 9/16/2018
2.0.1 231 9/16/2018
2.0.0 331 8/19/2018
1.1.1 323 8/5/2018
1.1.0 296 8/4/2018
1.0.4-alpha 333 7/5/2018
1.0.3-alpha 260 7/3/2018
1.0.2-alpha 317 6/30/2018
Show less