forked from JohnnyCrazy/SpotifyAPI-NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
30 lines (25 loc) · 781 Bytes
/
Program.cs
File metadata and controls
30 lines (25 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using SpotifyAPI.Web;
using System;
using System.Threading.Tasks;
namespace SpotifyAPI.Example
{
public class Program
{
public static void Main(string[] args)
{
Start();
Console.ReadLine();
}
public static async Task Start()
{
Console.WriteLine("Starting...");
SpotifyWebAPI spotify = new SpotifyWebAPI();
var track = await spotify.GetTrack("asdasd6hlAgsvXoIWJrcVD7qYp4N");
var track2 = await spotify.GetTrack("4kG3iPdJ13SNOoCnhdlpx7");
Console.WriteLine($"Server: {track.Header("Server")}");
Console.WriteLine(track.Name);
Console.WriteLine(track2.Name);
Console.WriteLine("Finished");
}
}
}