顯示具有 jsonp 標籤的文章。 顯示所有文章
顯示具有 jsonp 標籤的文章。 顯示所有文章

2011/3/21

plurk api test

http://cgm.cs.ntust.edu.tw/etrex/etrexJs/plurk/plurkjsonpdemo.html

2011/1/29

jsonp proxy using python and google app engine

API用法:
http://proxyetrex.appspot.com/?callback=函數名稱&url=網址

範例:
假設我們想要連線到http://www.useragentstring.com/?getJSON=all取得json

作一個 alert 的 jsonp
http://proxyetrex.appspot.com/?callback=alert&url=http://www.useragentstring.com/?getJSON=all


python 實作的程式碼

2011/1/15

jsonp proxy

我們知道 jsonp 是需要 server side 支援才有可能辦到
比方說userAgentString.com不支援 jsonp
API介紹
用法

所以我們需要另一台 server 去讀取上面的 json 然後支援 jsonp
正好已經有webetrex.appspot.com幫我們作這件事了
API介紹
用法

所以我們可以實驗一下效果
Parse JavaScript Object Online
import 這個 jsonp
就會看到正確的完成任務