少年幃禿的煩惱

Navigation

最新協作平台活動

67天前是
某個日子

Home‎ > ‎Google Code‎ > ‎

Google AJAX Feed API


介紹

Google AJAX Feed API 可以讓你只使用 JavaScript 來取得 Atom/RSS feed. 還可以使用 Feed Control wizard 快速的產生程式碼.

Developer's Guide

Including the AJAX Feed API

Google AJAX Feed API 需要一個 Google API key .
<script type="text/javascript" src="http://www.google.com/jsapi?key=YOUR_KEY_HERE"></script>
<script type="text/javascript">
  google.load("feeds", "1");
</script>

JSON and XML Result Formats

AJAX Feed API 可以傳回兩種格式的 feeds: JSON 和 XML. 預設是 JSON 格式. JSON 可以使用統一方法來處理 Atom/RSS feeds 的內容, 但是訊息是固定的. XML 則必須自己使用瀏覽器的 DOM 函數來取得, 但是可以取得一些網站自訂的資料. Google 允許同時使用兩種格式.


Examples

@TODO