Tumblrアカウントを設定し、それを認証するためにアプリケーションを登録しました。
Tumblrのドキュメント:http ://www.tumblr.com/docs/en/api/v2
APIがJSONを次のように出力することを理解しています。
{
"meta": {
"status": 200,
"msg": "OK"
},
"response": {
"blog": {
"title": "David's Log",
"posts": 3456,
"name": "david",
"url": "http:\/\/david.tumblr.com\/",
"updated": 1308953007,
"description": "<p><strong>Mr. Karp<\/strong> is tall and skinny, with
unflinching blue eyes a mop of brown hair.\r\n
"ask": true,
"ask_anon": false,
"likes": 12345
}
}
}
それは問題ありませんが、ドキュメントはそこで終わります。この情報を取得して自分のサイトに表示する方法がわかりません。
私はあなたがそれを得る方法は次のようなものになるだろうと思いました:
$.ajax({
url: "http://api.tumblr.com/v2/blog/myblog.tumblr.com/info?api-key=myapikey",
dataType: 'jsonp',
success: function(results){
console.log(results);
}
});
しかし、これは何もしません。
誰かが私を助けることができますか?ありがとう