Spotify.NET/SpotifyAPI.Web/Clients/MarketsClient.cs
Sascha Kiefer d363789d42
feat: implements markets API (#787)
* feat: implements markets API

* fix: use correct constructor name
2022-08-11 08:54:09 +02:00

17 lines
409 B
C#

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()
{
return API.Get<AvailableMarketsResponse>(URLs.Markets());
}
}
}