should get back a string i can then turn to json and parse for accesstoken Using (StreamReader rdr = new StreamReader(stream, Encoding.UTF8)) Using (Stream stream = response.GetResponseStream()) Using (HttpWebResponse response = (HttpWebResponse)webRequest.GetResponse()) HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(spotifyURL) I have tried creating a redirect link myself, but shouldn't the GetResponse() method invoke the redirect itself? I am new at this so I may be wrong but any help would be appreciated. I am trying to make the web request to have users login to their spotify account, but for some reason my app does not redirect to the login page whenever I try to get the response. I am using the spotify web api and building an asp.net mvc application (c#). I'm trying to create an application that allows users to create preferred playlists on spotify.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |