Tag: gdata

如何将google api添加到.net c#

如何将google数据API添加到.net框架中。 我看到了gdata文档,但没有任何帮助。 现在我很困惑我是否应该使用网络参考?

C#中的Google AnalyticsAPI – 请求执行失败:https://www.google.com/analytics/feeds/accounts/default

我想访问Google分析数据,我从Google数据API SDK获取样本。 但是这些编码不起作用并抛出exception 执行请求失败: https : //www.google.com/analytics/feeds/accounts/default 所以我发现原因是Google将其更新为v3.0。 我搜索了C#的更新编码,但我找不到解决方案。 我有同样的问题,但用C#。 使用GData .NET Analytics API时抛出exception 我尝试使用以下更改进行编码,如Google开发者所述 – https://developers.google.com/analytics/resources/articles/gdata-migration-guide#appendix_a string userName = this.Username.Text; string passWord = this.Password.Text; AnalyticsService service = new AnalyticsService(“AnalyticsSampleApp”); service.setUserCredentials(userName, passWord); string googleAccountWebId = “AIXXXXXXXXXXXXXXXXXXXXXXXXXXX”; string profileFeedUrl = “https://www.googleapis.com/analytics/v2.4/data?key=” + googleAccountWebId; DataQuery query2 = new DataQuery(profileFeedUrl); query2.Ids = “12345678”; query2.Metrics = “ga:visits”; query2.Sort = […]

GData.Photos查询中的全尺寸图像在哪里?

我正在查询Picasa图库,当我深入查看返回的条目时,我找不到完整尺寸的图像。 我只能看到一个更小,重新resize的图像( data[0].Content.AbsoluteUri )。 我知道Google会保留完整尺寸的图片,因为当我在线查看我的Picasa图库时,我可以看到它。 全尺寸图片在哪里? var picasaService = new PicasaService(“Gallery”); var photoQuery = new PhotoQuery(PicasaQuery.CreatePicasaUri(“GOOGLEUSERNAME”, “GALLERYID”)); var photoFeed = picasaService.Query(photoQuery); var data = photoFeed.Entries;

Google.GData.Client.GDataRequestException – 旧代码中的身份validation突然失败

尝试在Google云端硬盘上validation和访问电子表格时,我突然开始出现以下exception: 未处理的exception:Google.GData.Client.GDataRequestException:执行aut hentication请求返回意外结果:Google.GData.Client.Utilities.QueryClientLoginToken上的Google.GData.Client.Utilities.getAuthException(TokenCollection tokens,Htt pWebResponse响应)中的404 GDataCredentials gc,S service service,String applicationName,Boolean fUseKeepAlive,IWebProxy prox yServer,Uri clientLoginHandler)at Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials gc)at Google.GData.Client.GDataGAuthRequest.EnsureCredentials()at Google.GData .Client.GDataRequest.EnsureWebRequest()位于Google.GData的Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)上的Google.GData.Client.GDataRequest.Execute()Google.GData.Client.GDataGAuthRequest.EnsureWebRequest() Google.GData.Client.Service.Query(FeedQu)上的.Client.GDataGAuthRequest.Execute()at Google.GData.Client.Service.Query(Uri queryUri,DateTime ifModifiedSince,String etag,Int64&contentLength) 来自GoogleLogger.GoogleService.getLastXECLogRows(String folderName,String fileName,Int32 rows)的Google.GData.Documents.DocumentsService.Query(DocumentsListQuery feedQuery)的ery feedQuery) 这是代码已经运行了两年没有任何问题。 我首先想到我可能已经失去了我的生产系统的访问权限,但谷歌驱动器在我的网络浏览器中加载得很好。 在其他几个系统上尝试过它并且得到了相同的结果。 他们今天在Google API中有什么变化吗? 这不可能是巧合!