2012-02-01 64 views

回答

2

它们都连接到从谷歌 “核心报告API” 页面。 http://code.google.com/apis/analytics/docs/gdata/v3/gdataLibraries.html

一个在v3.0下链接,一个在v2.4下链接。

v3.0的.net库仍显示为beta版。

有V3.0和V2.4这里的比较:http://code.google.com/apis/analytics/docs/gdata/home.html

+0

是的,但似乎是2.4和3。0你会谈论同一个项目:http://code.google.com/p/google-api-dotnet-client/但这个项目是什么:http://code.google.com/p/google-gdata/? – Dragouf 2012-02-20 14:20:05

+0

Core Reporting API的2.4和3.0版http://code.google.com/apis/analytics/docs/gdata/home.html,2.4代码链接http://code.google.com/p/google-gdata /(当前版本1.9)。 Core Reporting API的3.0版链接到http://code.google.com/p/google-api-dotnet-client/ – Ian 2012-02-20 15:59:11

+0

好吧!那么接下来我们将不得不使用code.google.com/p/google-api-dotnet-client,而其他库将被取消? – Dragouf 2012-02-20 16:46:17

0

谷歌提供了一个.NET包装为那些喜欢谁/需要在.net编写他们的应用程序:

http://code.google.com/p/google-gdata/

的的GData .NET客户端库提供了一个库,源代码, 化妆通过Google数据API访问数据非常简单。

PS:

谷歌数据(的GData)=谷歌Analytics(分析)API:

http://code.google.com/apis/analytics/

+0

谢谢我知道。但我想知道这两个项目的区别。他们都是官员吗?我们两个人有什么区别?我实际上使用gdata API,但我想知道我是否可以使用第二个,哪个最好。 – Dragouf 2012-02-02 15:48:25

3

在我的(有限)的经验:

  • 的GData具有更好的综合的OAuth2支持,这是更容易使用。

  • GoogleApiDotnetClient服务返回特定的子类型,而GData返回基类型。例如,GoogleApiDotnetClient日历事件请求返回类型为IEnumerable<Event>的内容,而GData返回IEnumerable<AtomEntry>,其中每个实例实际上是EventEntry

  • GoogleApiDotnetClient实例更简单,例如Event.Summary是字符串字段,而GData的摘要是AtomTextConstruct,它具有Text属性。

  • GoogleApiDotnetClient不支持一些API,特别是Spreadsheets。

  • 日期往往是在GoogleApiDotnetClient中的字符串,但在GData中适当的DateTime值。

  • 不幸的是,他们都没有任何XML评论。

到目前为止,我对GoogleApiDotnetClient有偏好,但坦率地说,它们都有很大的改进空间。

+0

你在说什么很有意思。但为什么要维持这两个图书馆?他们都是官员吗? – Dragouf 2012-11-08 10:08:52

+0

@Dragouf我的印象是只有GData是官方的,但我不完全确定。 – 2012-11-08 10:51:22

相关问题