google-api-dotnet-client

GoogleWebAuthorizationBroker.AuthorizeAsync Hangs

依然范特西╮ 提交于 2019-12-17 07:36:01
问题 Our website needs to upload videos to youtube from the code behind (asp.net mvc application). I'm trying to get the google credentials, but when i call the AuthorizeAsync, the application just hangs. I've looked all over for a solution and none seem to help out. I've already searched for the obvious on google and stack overflow. most of what i found mentioned that the application might not have access the the appdata folder, so i tried changing the folder to be in the c drive, d drive and in

GoogleWebAuthorizationBroker.AuthorizeAsync Hangs

徘徊边缘 提交于 2019-12-17 07:34:28
问题 Our website needs to upload videos to youtube from the code behind (asp.net mvc application). I'm trying to get the google credentials, but when i call the AuthorizeAsync, the application just hangs. I've looked all over for a solution and none seem to help out. I've already searched for the obvious on google and stack overflow. most of what i found mentioned that the application might not have access the the appdata folder, so i tried changing the folder to be in the c drive, d drive and in

Accessing Google Spreadsheets with C# using Google Data API

a 夏天 提交于 2019-12-17 03:21:20
问题 I'm having some information in Google Spreadsheets as a single sheet. Is there any way by which I can read this information from .NET by providing the google credentials and spreadsheet address. Is it possible using Google Data APIs. Ultimately I need to get the information from Google spreadsheet in a DataTable. How can I do it? If anyone has attempted it, pls share some information. 回答1: According to the .NET user guide: Download the .NET client library: Add these using statements: using

Google API V3: videosInsertRequest.UploadAsync returns “Response status code does not indicate success: 400 (Bad Request)”

谁说我不能喝 提交于 2019-12-13 22:03:08
问题 Last Friday, execution of videosInsertRequest.UploadAsync in my EXE worked fine. Today, Monday, two exceptions are returned via the Response_Received event handler: Response status code does not indicate success: 400 (Bad Request). followed by Value cannot be null. Parameter name: baseUri . Execution of GoogleWebAuthorizationBroker.AuthorizeAsync, ChannelsResource.ListRequest, VideoCategoriesResource.ListRequest continue to work fine. There has been no change in the program's code over the

The type or namespace name 'Google' could not be found

三世轮回 提交于 2019-12-13 15:08:13
问题 Im trying to use Google.Apis in my WP8 project, but im unable to compile it. I got Google.Apis 1.8.1, and Google.Apis.Auth 1.8.1, and i can access it by IntelliSense, but, when i try to compile my project, i got this error; Im using Visual Studio Express 2012 for Windows Phone; As you can see below, i got code-complete; And i got the correct references This is my final code, very simple class, only using Google.Apis; And this error 回答1: You should install the Google.Cloud.Language.V1 from

Get UserCredential of Google Drive API using Refresh token, ClientId and ClientSecret in ASP.net/C#

a 夏天 提交于 2019-12-13 04:59:17
问题 I was able to get a RefreshToken by following the instruction given in this link : How do I authorise a background web app without user intervention? (canonical ?). Now I need user credential for getting driveservice object . I have searched a lot but cant find a exact solution. I can get access token using refresh token, ClientId and ClientSecret following this link :Using OAuth 2.0 for Web Server Applications - offline. But after that how can I get user credential using that AccessToken ?

How to implement Incremental Authorization with Google API?

不想你离开。 提交于 2019-12-13 04:13:03
问题 I have an installed app that is a toolkit for the user, and as such they're able to choose their own scopes. I've run in to an issue with a scope limit when being passed as parameters via the URL. As such I'm looking to implement Incremental Authorization so that they only have to authorize scopes as they use them, and they don't have to also add scopes again from previous to overwrite. I'm using the GoogleWebAuthorizationBroker class to do the authorization, but I'm not seeing anything that

Google Calender Vr3 - How do I add a reminder to an event?

可紊 提交于 2019-12-13 03:48:31
问题 So far I am able to insert an event in a calendar using the following code. Dim calService As CalendarService = calendarFunctions.getCalendarService(txtrefreshToken.Text.Trim) Dim calEventEntry As New Data.Event calEventEntry.Summary = "Invoice #123456 Due on dd/mm/yyyy" calEventEntry.Description = "Client: Acme Printing Ltd." calEventEntry.Id = "inv5670010" Dim eventStartDT As New Data.EventDateTime() eventStartDT.DateTime = DateTime.Now.AddHours(24) Dim eventStartEndDT As New Data

How to delete a google docs without ownership using an API/Services account

流过昼夜 提交于 2019-12-13 03:38:36
问题 I have failed in all my attempts to delete a document without the ownership. What I have tried so far Attempted to delete document using a services account (Tried, Failed) Attempted to delete document as drive admin (Tried, Failed) In my final attempt; I am trying to follow the solution suggested in this thread Delete a file from different owner with Google Drive API Logged in as a services account (service account has been authorized with domain-wide delegation https://developers.google.com

Google.Apis.Json.NewtonsoftJsonSerializer throw an exception

点点圈 提交于 2019-12-13 01:03:38
问题 When I run workerRole on Azure, throw me the following exception: An unhandled exception of type 'System.TypeInitializationException' occurred in Google.Apis.Auth.dll Additional information: Se produjo una excepción en el inicializador de tipo de 'Google.Apis.Json.NewtonsoftJsonSerializer'. This is the code that break execution: private static byte[] jsonSecrets = Properties.Resources.client_secrets; using (var stream = new MemoryStream(jsonSecrets, true)) { GoogleWebAuthorizationBroker