Thousand Squared

Posts match “ YouTube ” tag:

GData Objective-C Client 介紹

| Comments

Introduction

要使用這個 GData 之前,確保你已經了解 Google Api feed 內容是什麼,若還不了解請查詢 Understanding Video Feeds and Entries

最近工作內容要用 Youtube API V2 撈資料,在 android 上很簡單,解解 JSON 爬爬 XML 就好,但是在 iOS 上就覺得很麻煩了。因此搜尋了一下發現原來 Google 有出 GData objective-c client 端的程式,雖然最後一次更新已經有點久了,但是功能幾本上沒有缺。

使用起來也很方便,完全不需要去爬 XML (註1),開發速度就快不少!而且也支援 batch operation,如果要用 Google API 的話,這一套推薦使用!

註1:為什麼要爬 XML ?因為有些 Google API 的 batch operation 回傳的資料只支援 XML 格式,沒有 JSON 格式,不然我也不想爬 XML 呀!

View source on Github