Spotify.NET/SpotifyAPI.Web/Clients/MarketsClient.cs

18 lines
475 B
C#
Raw Normal View History

using System.Threading;
using System.Threading.Tasks;
using SpotifyAPI.Web.Http;
using URLs = SpotifyAPI.Web.SpotifyUrls;
namespace SpotifyAPI.Web
{
public class MarketsClient : APIClient, IMarketsClient
{
public MarketsClient(IAPIConnector apiConnector) : base(apiConnector) { }
public Task<AvailableMarketsResponse> AvailableMarkets(CancellationToken cancel = default)
{
return API.Get<AvailableMarketsResponse>(URLs.Markets(), cancel);
}
}
}