google-api-dotnet-client

How Google API V 3.0 .Net library and Google OAuth2 Handling refresh token

寵の児 提交于 2019-11-27 01:22:51
In my application I am using Google API V 3.0 .Net library with Google OAuth2 to synchronize Google calender and outlook calender. I am using below code to get the Google.Apis.Calendar.v3.CalendarService service object. During authentication I stored the Json file and from that I am requesting for Google.Apis.Auth.OAuth2.UserCredential object. private Google.Apis.Auth.OAuth2.UserCredential GetGoogleOAuthCredential() { GoogleTokenModel _TokenData = new GoogleTokenModel(); String JsonFilelocation = "jsonFileLocation; Google.Apis.Auth.OAuth2.UserCredential credential = null; using (var stream =

Google API OAuth2, Service Account, “error” : “invalid_grant”

家住魔仙堡 提交于 2019-11-26 22:26:11
问题 I'm trying to use service account to sync calendars from Dynamics CRM software to Google. During this I faced lack of documentation on google API for .net, especially regarding authorization. Most of Google samples can't be even compiled because of outdated libraries and classes used. So I found some example over interned and receive error. Could someone please look on my sample and tell what am I doing wrong? Preparatory steps: I created a project in my private Google account. In project

Google+ insert moment using google-api-dotnet-client

夙愿已清 提交于 2019-11-26 21:58:41
问题 I am trying to write an activity in Google+ using the dotnet-client. The issue is that I can't seem to get the configuration of my client app correctly. According to the Google+ Sign-In configuration and this SO question we need to add the requestvisibleactions parameter. I did that but it did not work. I am using the scope https://www.googleapis.com/auth/plus.login and I even added the scope https://www.googleapis.com/auth/plus.moments.write but the insert still did not work. This is what my

Accessing Google Spreadsheets with C# using Google Data API

蓝咒 提交于 2019-11-26 15:35:08
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. Kelly According to the .NET user guide : Download the .NET client library : Add these using statements: using Google.GData.Client; using Google.GData.Extensions; using Google.GData.Spreadsheets; Authenticate:

Google Calendar Event Not Showing in Calendar

房东的猫 提交于 2019-11-26 11:36:54
问题 We have created a Service Account in Google and Using Calendar API for adding events, it worked fine before ,after google stopped the account and reactivated it , it didn\'t work We have tried new service account and debugged line by line of our code and no error and also returning created events but not showing in calendar CalendarService service = null; var serviceAccountCredentialFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, \"ServiceAccount_Key.json\"); if (Path

Could not load file or assembly System.Net.Http.Primitives. Located assembly's manifest definition does not match the assembly reference

人走茶凉 提交于 2019-11-26 10:33:52
I'm working on a program that uses the Google API. However every time I run my program, it I keeps getting the following error: Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f711d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. I'm using Visual Studio 2012 express. I've tried following this link and looked through many forums, but none seem to work. The main problem seems to come from the DLL file "Google.Apis.dll" which I referenced, and it references System

How Google API V 3.0 .Net library and Google OAuth2 Handling refresh token

走远了吗. 提交于 2019-11-26 09:40:27
问题 In my application I am using Google API V 3.0 .Net library with Google OAuth2 to synchronize Google calender and outlook calender. I am using below code to get the Google.Apis.Calendar.v3.CalendarService service object. During authentication I stored the Json file and from that I am requesting for Google.Apis.Auth.OAuth2.UserCredential object. private Google.Apis.Auth.OAuth2.UserCredential GetGoogleOAuthCredential() { GoogleTokenModel _TokenData = new GoogleTokenModel(); String

Could not load file or assembly System.Net.Http.Primitives. Located assembly's manifest definition does not match the assembly reference

我是研究僧i 提交于 2019-11-26 02:10:43
问题 I\'m working on a program that uses the Google API. However every time I run my program, it I keeps getting the following error: Could not load file or assembly \'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f711d50a3a\' or one of its dependencies. The located assembly\'s manifest definition does not match the assembly reference. I\'m using Visual Studio 2012 express. I\'ve tried following this link and looked through many forums, but none seem to work.