2020-05-01 19:05:28 +01:00
|
|
|
using System;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
2020-05-02 12:04:26 +01:00
|
|
|
namespace SpotifyAPI.Web
|
2020-05-01 19:05:28 +01:00
|
|
|
{
|
|
|
|
[TestFixture]
|
2020-05-02 12:04:26 +01:00
|
|
|
public class Testing
|
2020-05-01 19:05:28 +01:00
|
|
|
{
|
2020-05-02 12:04:26 +01:00
|
|
|
|
2020-05-01 19:05:28 +01:00
|
|
|
[Test]
|
2020-05-02 12:04:26 +01:00
|
|
|
public async Task TestingYo()
|
2020-05-01 19:05:28 +01:00
|
|
|
{
|
2020-05-02 12:04:26 +01:00
|
|
|
var config = SpotifyClientConfig.CreateDefault("BQAODnY4uqYj_KCddlDm10KLPDZSpZhVUtMDjdh1zfG-xd5pAV3htRjnaGfO7ob92HHzNP05a-4mDnts337gdnZlRtjrDPnuWNFx75diY540H0cD1bS9UzI5cfO27N2O6lmzKb_jAYTaRoqPKHoG93KGiXxwg4vblGKSBY1vIloP");
|
|
|
|
var spotify = new SpotifyClient(config);
|
2020-05-01 19:05:28 +01:00
|
|
|
|
2020-05-02 12:04:26 +01:00
|
|
|
var playlists = await spotify.Browse.GetCategoryPlaylists("toplists", new CategoriesPlaylistsRequest() { Offset = 1 });
|
|
|
|
Console.WriteLine(playlists.Playlists.Items[0].Name);
|
2020-05-01 19:05:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|