【问题标题】:json aquired tumblr feed error, uncaught syntaxerror: unexpected token <json 获取 tumblr 提要错误,未捕获的语法错误:意外令牌 <
【发布时间】:2011-12-01 05:40:30
【问题描述】:

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

我将我的 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 密钥吗?

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

【问题讨论】:

    标签: json api oauth tumblr api-key


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2012-10-12
      • 1970-01-01
      • 1970-01-01
      • 2014-02-09
      • 2011-04-07
      • 1970-01-01
      • 2015-12-01
      相关资源
      最近更新 更多