namespace SpotifyAPI.Web
{
///
/// Used when requesting a refreshed token from spotify oauth services (Authorization Code Auth)
///
public class AuthorizationCodeRefreshRequest
{
///
///
///
/// The Client ID of your Spotify Application (See Spotify Dev Dashboard)
/// The Client Secret of your Spotify Application (See Spotify Dev Dashboard)
/// The refresh token received from an earlier authorization code grant
public AuthorizationCodeRefreshRequest(string clientId, string clientSecret, string refreshToken)
{
Ensure.ArgumentNotNullOrEmptyString(clientId, nameof(clientId));
Ensure.ArgumentNotNullOrEmptyString(clientSecret, nameof(clientSecret));
Ensure.ArgumentNotNullOrEmptyString(refreshToken, nameof(refreshToken));
ClientId = clientId;
ClientSecret = clientSecret;
RefreshToken = refreshToken;
}
///
/// The refresh token received from an earlier authorization code grant
///
///
public string RefreshToken { get; }
///
/// The Client ID of your Spotify Application (See Spotify Dev Dashboard)
///
///
public string ClientId { get; }
///
/// The Client Secret of your Spotify Application (See Spotify Dev Dashboard)
///
///
public string ClientSecret { get; }
}
}