JSON を返すClipped API ( http://cliped.me/api.html )を使用しようとしていますが、問題が発生しています。getJSON を使用していますが、Chrome の JS コンソールに次のエラー メッセージが表示されます。
リソースはスクリプトとして解釈されますが、MIME タイプ text/html で転送されます: " http://cliped.me/algorithm/clipedapi.php?url=callback=jQuery1910859611126 airbnb-or-dropbox/&_=1364420105379".
キャッチされていない SyntaxError: 予期しない識別子
リクエストが失敗しました: parsererror、エラー: jQuery19108596111265942454_1364420105378 が呼び出されませんでした
そして、ここに私のJSがあります:
var clippedAPI = "http://clipped.me/algorithm/clippedapi.php?url=[URL]callback=?";
$.getJSON(clippedAPI, "http://pandodaily.com/2013/03/26/y-combinator-demo-day-2013-still-looking-for-the-next-airbnb-or-dropbox/" ).done(function(json) {
console.log("JSON Data: " + json.title );
}).fail(function(jqxhr, textStatus, error){
var err = textStatus + ', ' + error;
console.log("Request Failed: " + err);
});
APIやJSONを使って何かを作ろうとするのはこれが初めてなので、ここで何をすべきか本当にわかりません。グーグルを試してみましたが、何も見つかりません。callback=?