I\'m trying to call the spotify API with C#. Unfortunately, I\'m already stuck with getting the access token
access token
This is how I tried to get it:
Just encode your App ClientId and ClientSecret:
var token = Convert.ToBase64String(Encoding.UTF8.GetBytes(string.Format("{0}:{1}",this.CliendId,this.ClientSecret)));
Replace properly:
request.Headers.Add("Authorization", "Basic " + token);
That's it!