Spotify.NET/SpotifyAPI.Web.Tests/UtilTests/Test.cs

22 lines
666 B
C#
Raw Normal View History

2020-05-01 19:05:28 +01:00
using System;
using System.Threading.Tasks;
using NUnit.Framework;
namespace SpotifyAPI.Web
2020-05-01 19:05:28 +01:00
{
[TestFixture]
public class Testing
2020-05-01 19:05:28 +01:00
{
2020-05-01 19:05:28 +01:00
[Test]
public async Task TestingYo()
2020-05-01 19:05:28 +01:00
{
var config = SpotifyClientConfig.CreateDefault("BQAODnY4uqYj_KCddlDm10KLPDZSpZhVUtMDjdh1zfG-xd5pAV3htRjnaGfO7ob92HHzNP05a-4mDnts337gdnZlRtjrDPnuWNFx75diY540H0cD1bS9UzI5cfO27N2O6lmzKb_jAYTaRoqPKHoG93KGiXxwg4vblGKSBY1vIloP");
var spotify = new SpotifyClient(config);
2020-05-01 19:05:28 +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
}
}
}