google-api-dotnet-client

c#: google drive : google apis.services are you missing an assembly or reference

一曲冷凌霜 提交于 2020-01-20 07:20:10
问题 i am trying to use google.drive for .net using the quickstart example. i have installed dlls via nuget, but am receiving the following error that i am missing a reference or assembly for google.apis.service. any help would be appreciated using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using DotNetOpenAuth.OAuth2; using Google.Apis.Authentication.OAuth2; using Google.Apis.Authentication.OAuth2

c#: google drive : google apis.services are you missing an assembly or reference

一世执手 提交于 2020-01-20 07:19:24
问题 i am trying to use google.drive for .net using the quickstart example. i have installed dlls via nuget, but am receiving the following error that i am missing a reference or assembly for google.apis.service. any help would be appreciated using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using DotNetOpenAuth.OAuth2; using Google.Apis.Authentication.OAuth2; using Google.Apis.Authentication.OAuth2

Google Drive API IAuthenticator

我的未来我决定 提交于 2020-01-16 00:21:55
问题 I am trying to integrate my ASP.NET C# application with the Google Drive API. We have successfully stored documents as pdf onto our drive storage account, but now we are trying to retrieve and download the file. We make the call and it gives us data back. My problem is that it gives me several download links and each of these links (when used to retrieve the document) gives an error saying "Unauthorized". In the documentation it mentions ICredentials , but I cannot find anything about how to

Google Drive API IAuthenticator

冷暖自知 提交于 2020-01-16 00:21:09
问题 I am trying to integrate my ASP.NET C# application with the Google Drive API. We have successfully stored documents as pdf onto our drive storage account, but now we are trying to retrieve and download the file. We make the call and it gives us data back. My problem is that it gives me several download links and each of these links (when used to retrieve the document) gives an error saying "Unauthorized". In the documentation it mentions ICredentials , but I cannot find anything about how to

Google Plus API Moment.Insert

谁说胖子不能爱 提交于 2020-01-13 18:14:48
问题 I am trying for moment.insert using google-api-dotnet-client and also included the request_visible_actions and access_type in oauth request but I am always getting exception: The given key was not present in the dictionary. Here is the stack trace: at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Google.Apis.Discovery.BaseService.GetResource(IResource root, String fullResourceName) in c:\code.google.com\google-api-dotnet-client\default\Tools\BuildRelease\bin\Debug\12-20-2012

Analytics Reporting v4 with API key

China☆狼群 提交于 2020-01-11 05:45:10
问题 I need to integrate a very basic report from Google Analytics in the dashboard page of a CMS web application I'm building with asp.net web forms (C#). I remember I was able to do it on a test made in 2015 with API V3, but now, with V4, I get always an error message that OAuth2 is needed for authentication. I need to access to a specific analytics account I own, not the account of the user that navigate in the CMS! So I use the API KEY given by Google API Manager. I have given to that API Key

Powershell Cmdlet Missing Assembly Google Api

六月ゝ 毕业季﹏ 提交于 2020-01-10 20:07:27
问题 Only have issues when trying to create a Powershell Cmdlet. I can execute the same code in the process record within a console app just fine. Thoughts were the App.config isn't redirecting the assembly but didn't have much success making it work. I used the nuget packages for the references to the Google-api-dotnet-client Sample Code here http://tinyurl.com/mbx3yle Error http://i.imgur.com/xiEjwAR.png Get-GAppsUsers : Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0

Powershell Cmdlet Missing Assembly Google Api

廉价感情. 提交于 2020-01-10 20:07:02
问题 Only have issues when trying to create a Powershell Cmdlet. I can execute the same code in the process record within a console app just fine. Thoughts were the App.config isn't redirecting the assembly but didn't have much success making it work. I used the nuget packages for the references to the Google-api-dotnet-client Sample Code here http://tinyurl.com/mbx3yle Error http://i.imgur.com/xiEjwAR.png Get-GAppsUsers : Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0

Trying to Creating users in Google Apps domain in Windows Forms code

北城以北 提交于 2020-01-06 15:21:35
问题 I'm trying to create a user from a windows forms application. I've managed to do it in a consoleapp, but I want it in a proper windows app. :) To get the authentication right' I've tried to figure out how the AssertionFlowClient is working, but it won't come out right. Here's the critical code: private void CreateUserBtn_Click(object sender, EventArgs e) { var provider = new AssertionFlowClient(GoogleAuthenticationServer.Description, new X509Certificate2(@"C:\key.p12", "notasecret",

Google.Apis.Requests.RequestError Backend Error [500] Errors [ Message[Backend Error] Location[ - ] Reason[backendError] Domain[global] ]

前提是你 提交于 2020-01-06 14:44:33
问题 What am trying is to fetch the locations using google coordinate api. The code snippet I used is as follows, String serviceAccountEmail = "mail.gserviceaccount.com"; var certificate = new X509Certificate2(Server.MapPath("../CertStore/cert.p12"), "notasecret", X509KeyStorageFlags.Exportable); ServiceAccountCredential credential = new ServiceAccountCredential( new ServiceAccountCredential.Initializer(serviceAccountEmail) { Scopes = new[] { CoordinateService.Scope.Coordinate } }.FromCertificate