0

这是我在这里发布的第一个问题,所以如果我使用错误的形式,我会提前道歉。

我将我的 tumblr 博客文章输入我网站的旁边部分。今晚提要没有显示在我的页面上。Chrome 显示此错误:

"Uncaught SyntaxError: Unexpected token < hearthescene.tumblr.com:1"

这是显示我的 json 请求的代码片段:

$.getJSON(
    "http://hearthescene.tumblr.com/api/read/json?callback=?", 
    function(data) { 
        ...formatting the data for my site....
    }
);

几天来,我实际上没有在网站上编辑任何内容。我想知道 tumblr 是否提高了安全性,我需要进行一些 OAuth 身份验证或提供 api 密钥吗?

任何帮助将不胜感激。提前致谢。

4

1 回答 1

1

我需要这样添加 api_key: $.getJSON(" http://hearthescene.tumblr.com/api/read/json?/?api_key= {my_api_key}&callback=?",

于 2011-10-05T17:34:34.077 回答