This is my first time working with an API needing auth. I've went through all the different nuget packages available. I would like to build a console app where I can parse the JSON results like I do with my other API console apps.
Is this even possible for spotify or do I absolutely need a redirect to spotify log in?
I've been researching this issue for over a week now.
How I would like to code the endpoints if I had authorization working:
var url = "https://example.com/endpoint";
var request = WebRequest.Create(url);
request.Method = "GET";
var webResponse = request.GetResponse();
var webStream = webResponse.GetResponseStream();
var reader = new StreamReader(webStream);
var data = reader.ReadToEnd();
Console.WriteLine(data);
Foo bar = JsonConvert.DeserializeObject<Foo>(data);
class Foo
{
public double Jsonobject { get; set; }
public string Jsonobject { get; set; }
public float Jsonobject { get; set; }
}