App to download from google drive windows how to#
I tried using the HttpClient sample but wasn't sure how to use the authentication token that I got from the authentication sample. Net library that Google has made available but it doesn't seem to work for Windows store apps. Bad Parameter, SSL/TLS Errors and Network Unavailable errors are to be handled here.Īfter the app authenticates, I'm not sure how to go about using file operations. OutputToken("Error returned by AuthenticateAsync() : " + ()) OutputToken("HTTP Error returned by AuthenticateAsync() : " + ()) OutputToken(()) Įlse if (WebAuthenticationResult.ResponseStatus = WebAuthenticationStatus.ErrorHttp) If (WebAuthenticationResult.ResponseStatus = WebAuthenticationStatus.Success) WebAuthenticationResult WebAuthenticationResult = await WebAuthenticationBroker.AuthenticateAsync( When using the desktop flow, the success code is displayed in the html title of this end uriĭebugPrint("Navigating to: " + GoogleURL) System.Uri StartUri = new Uri(GoogleURL) String GoogleURL = "" + Uri.EscapeDataString(GoogleClientID.Text) + "&redirect_uri=" + Uri.EscapeDataString(GoogleCallbackUrl.Text) + "&response_type=code&scope=" + Uri.EscapeDataString("") RootPage.NotifyUser("Please enter an Callback URL.", NotifyType.StatusMessage) RootPage.NotifyUser("Please enter an Client ID.", NotifyType.StatusMessage) Here's the code: private async void Launch_Click(object sender, RoutedEventArgs e) Click Yes when Windows asks if you want to allow the app to make changes (uninstall the application. When the Programs and Features window opens, right-click Google Drive and pick Uninstall again. I am able to sign into Google using the web authentication sample. The quickest way to uninstall Google Drive on Windows is to open the Start menu, right-click Google Drive, and pick Uninstall.