From 2d7bcf37b98fe400e78cfb97aa1c5fabfec117a5 Mon Sep 17 00:00:00 2001 From: Chris Sienkiewicz Date: Thu, 15 Apr 2021 08:19:43 -0700 Subject: [PATCH] Fix embedded server authorization code example (#592) --- SpotifyAPI.Docs/docs/authorization_code.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpotifyAPI.Docs/docs/authorization_code.md b/SpotifyAPI.Docs/docs/authorization_code.md index 462fcd3c..acf50e6f 100644 --- a/SpotifyAPI.Docs/docs/authorization_code.md +++ b/SpotifyAPI.Docs/docs/authorization_code.md @@ -86,7 +86,7 @@ public static async Task Main() { Scope = new List { Scopes.UserReadEmail } }; - BrowserUtil.Open(uri); + BrowserUtil.Open(request.ToUri()); } private static async Task OnAuthorizationCodeReceived(object sender, AuthorizationCodeResponse response) @@ -96,7 +96,7 @@ private static async Task OnAuthorizationCodeReceived(object sender, Authorizati var config = SpotifyClientConfig.CreateDefault(); var tokenResponse = await new OAuthClient(config).RequestToken( new AuthorizationCodeTokenRequest( - "ClientId", "ClientSecret", response.Code, "http://localhost:5000/callback" + "ClientId", "ClientSecret", response.Code, new Uri("http://localhost:5000/callback") ) );