2020-05-13 22:49:54 +01:00
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
2020-05-15 19:06:24 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Used when requesting a token from spotify oauth services (Client Credentials Auth)
|
|
|
|
/// </summary>
|
2020-05-13 22:49:54 +01:00
|
|
|
public class ClientCredentialsRequest
|
|
|
|
{
|
2020-05-30 22:20:42 +01:00
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="clientId">The Client ID of your Spotify Application (See Spotify Dev Dashboard)</param>
|
|
|
|
/// <param name="clientSecret">The Client Secret of your Spotify Application (See Spotify Dev Dashboard)</param>
|
2020-05-13 22:49:54 +01:00
|
|
|
public ClientCredentialsRequest(string clientId, string clientSecret)
|
|
|
|
{
|
|
|
|
Ensure.ArgumentNotNullOrEmptyString(clientId, nameof(clientId));
|
|
|
|
Ensure.ArgumentNotNullOrEmptyString(clientSecret, nameof(clientSecret));
|
|
|
|
|
|
|
|
ClientId = clientId;
|
|
|
|
ClientSecret = clientSecret;
|
|
|
|
}
|
2020-05-30 22:20:42 +01:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The Client ID of your Spotify Application (See Spotify Dev Dashboard)
|
|
|
|
/// </summary>
|
|
|
|
/// <value></value>
|
2020-05-13 22:49:54 +01:00
|
|
|
public string ClientId { get; }
|
2020-05-30 22:20:42 +01:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The Client Secret of your Spotify Application (See Spotify Dev Dashboard)
|
|
|
|
/// </summary>
|
|
|
|
/// <value></value>
|
2020-05-13 22:49:54 +01:00
|
|
|
public string ClientSecret { get; }
|
|
|
|
}
|
|
|
|
}
|
2020-05-25 17:00:38 +01:00
|
|
|
|