2012-02-01 62 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

相關問題