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
|
|
|
|
{
|
|
|
|
public ClientCredentialsRequest(string clientId, string clientSecret)
|
|
|
|
{
|
|
|
|
Ensure.ArgumentNotNullOrEmptyString(clientId, nameof(clientId));
|
|
|
|
Ensure.ArgumentNotNullOrEmptyString(clientSecret, nameof(clientSecret));
|
|
|
|
|
|
|
|
ClientId = clientId;
|
|
|
|
ClientSecret = clientSecret;
|
|
|
|
}
|
|
|
|
public string ClientId { get; }
|
|
|
|
public string ClientSecret { get; }
|
|
|
|
}
|
|
|
|
}
|