Tag Archives: api

諾貝爾獎的網站有 API 了…

在「Nobel Prize Gets Official API」看到諾貝爾獎的網站提供 API,讓人存取歷年諾貝爾獎得主的資訊了 XDDD 官方的新聞稿在「Open Data about the Nobel Prize now Available」這邊,API 資訊則在「Developer Zone」這邊。 舉例來說,http://api.nobelprize.org/v1/prize.json?year=1901 可以抓出 1901 年諾貝爾獎得主的資料 (JSON 格式)。 而除了 JSON API 外,另外還在 data.nobelprize.org 提供 Linked Data 格式的資源。 資料不多,但蠻有趣的…

Posted in Computer, Murmuring, Network, Programming | Tagged , , , , , , | Leave a comment

Imgur 的商業使用方案…

在 TC 上看到 Imgur 提供商業方案:「Imgur Expands Its Revenue Streams With Latest API Update, Now Ready For Commercial Use」,同時 Imgur 也更新了 API 說明頁面:「The Imgur API – General Information」。 以圖片張數與 API request 數量限制,USD$25/month 每個月可以傳 12.5k 張以及 375k API requests。換算成每天的量,大約是 4k 0.4k 張圖與 … Continue reading

Posted in CDN, Cloud, Computer, Murmuring, Network, WWW | Tagged , , | 3 Comments

MOPCON 投影片:API Design Optimized for Mobile Platform

今天 MOPCON 的投影片,題目「API Design Optimized for Mobile Platform」:

Posted in Computer, Murmuring, Network, WWW | Tagged , , , , | Leave a comment

Chrome 的 webRequest…

在變成標準前又改了一次… 從 Google Chrome 17 後,「Web Requests」從 Experimental API 變成正式的 API,有不少地方在這次轉成正式 API 後需要修改: 本來 chrome.experimental.webRequest 都改成 chrome.webRequest。 需要加上 webRequest permission,如果有 blocking 行為則要再加上 webRequestBlocking permission。 API 呼叫的參數可能會不一樣,參考官方的文件的說明比較清楚。我遇到的是使用 onBeforeRequest.addListener 時需要多加上 urls 參數。 不再需要 expiermental permission,不過沒拿掉不影響運作。 在 Chrome Web Store 上面已經可以看到一些跟控制 Referrer 有關的延伸套件了…

Posted in Browser, Computer, GoogleChrome, Murmuring, Network, Programming, Software, WWW | Tagged , , , , | Leave a comment

擋掉 Google Plus,加快 Google Reader 速度…

Google Reader 這次改版另外一個為人詬病的問題是「變卡」,主要原因是 Google Plus。 第一個想到的解決是利用 Adblock Plus,將 http://www.google.com/reader/* 以及 https://www.google.com/reader/* 連到 https://plusone.google.com/* 的連線需求都都擋下來。但看了 Adblock Plus 的文件,不知道要怎麼設定… 後來想到的解法是自己寫 Google Chrome Extension,主要是很久沒寫都忘光了,剛好找個實際會用到的功能來寫… 主要是用到 chrome.tabs 與 chrome.experimental.webRequest 兩組 API 組合。其中後面這組 API 必須用 about:flags 打開權限才能使用。 成品在這:「google-reader-faster」,由於用到 Google Chrome 的 Experimental API 所以無法上傳到 Web … Continue reading

Posted in Browser, Computer, GoogleChrome, Murmuring, Network, Programming, Software, WWW | Tagged , , , , , , | 2 Comments

Flickr 也支援 OAuth Core 1.0a 了…

Flickr 宣佈支援 OAuth Core 1.0a 了:「Flickr now Supports OAuth 1.0a」,同時也宣佈舊的 API 將在 2012 年的上半年停用。文件在「User Authentication」這邊可以看到。 另外,除了推出新的 API 以外,Flickr 也提供用舊的 token 直接取得 OAuth Core 1.0a 的 access token 的 API call: Transition from the old Authentication API You can exchange an … Continue reading

Posted in Computer, Murmuring, Network, Security, WWW | Tagged , , | Leave a comment

Linode 也推出 Load balancer 服務… (剛開始 beta)

Linode 在「NodeBalancers – Managed Load Balancers」這邊公開了 NodeBalancer (lbass) 服務,目前在 beta 中,想要測試的人可以開 ticket 詢問。另外,API 文件也已經先公開,可以在「NodeBalancer API」這邊看到。 以 API 提供的功能看起來還算 okay,這樣就不需要自己用 Linode 提供的 IP Failover 並且在上面架 HAProxy server… 不過有些細節還是得等測試後才知道。像是 trusted IP 問題,我在「ELB 的 IP 信任問題…」有提過 EC2 的同樣問題 (前幾天用 ELB security group 解掉了)。

Posted in Cloud, Computer, Murmuring, Network, WWW | Tagged , , , , | 3 Comments

支援新版 Plurk API (OAuth Core 1.0a) 的 Twitter To Plurk Script

code 放在「Plurk 新版 OAuth Core 1.0a 的 twitter to plurk」,其中裡面用到的 SQLite 的表格結構請參考「Twitter 轉 Plurk 的程式…」這篇文章的說明。把本來是 plaintext password 的程式換過去後看起來舒服多了,不過中間寫起來讓人頗 orz… 先是一直沒辦法透過 OAuth::Lite 送出 UTF8 內容,於是決定換成 Net::OAuth,結果因為文件內的範例都沒講到重點而倒地不起… 然後遇到 Plurk API 2.0 beta 的文件沒有列出是 GET 或是 POST,於是又試了老半天… 文件真的很重要…

Posted in Blog, Computer, Murmuring, Network, Programming, Security, Social, Software, WWW | Tagged , , , , , | 1 Comment

Plurk API:OAuth Core 1.0a

「Plurk API 2.0 beta」總算是提供 OAuth Core 1.0a 介面讓人使用了,想把之前「Twitter 轉 Plurk 的程式…」的程式改寫,不過新的 API 不管怎麼註冊都不會過… 有人有註冊成功的嗎? PS:另外「* 如果這不是一個網頁應用程式,請留空白即可」好像也怪怪的,我記得應該反過來?

Posted in Blog, Computer, Murmuring, Network, Programming, Security, WWW | Tagged , , , | 4 Comments

AWS API 的認證方式

Amazon Web Services 有提供很多服務,有的早在「雲端風潮」前就有,有的是最近才推出的。把 AWS Documentation library 每個服務的 API 認證方式看完一遍後,只能苦笑對使用 AWS API 的人致敬… 有幾個心得與感想: 文件雖然套用同一組模板 (用 frame 切開,左邊索引,右邊內容),但其中的寫法並沒有統一。理論上每個 API 都會有的 API 簽名環節在不同的文件裡可能會在不同的章節出現。 認證的方式不一致: 早期的服務很亂,大多都是以 SOAP 為基礎的 API,尤其是跟錢有關的這塊特別明顯 (因為 Amazon 很早就 API 化)。 一開始出來的 S3 使用的是 REST 概念,簽名的值放在 HTTP Header 內,欄位名稱是 … Continue reading

Posted in AWS, Cloud, Computer, Murmuring, Network, Programming | Tagged , , | Leave a comment