我正在尝试在网页上显示 klout 分数
这是我的代码
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
var settings = {
"url": "http://api.klout.com/v2/user.json/********/score?key=7fn6tcf3zvptq9sw47aknmjr&callback=?",
"method": "GET",
"dataType": "json",
"headers": {}
}
$.ajax(settings).done(function (data) {
console.log(data);
$(data, function( inf ) {
$("#score").append('<li>' + inf.score + '</li>');
});
});
</script>
<h2>Klout Score</h2>
<ul id="score"></ul>
我调用的json数据如下
{"score":10.0,"scoreDelta":{"dayChange":0.0,"weekChange":0.0,"monthChange":0.0},"bucket":"10-19","unscored":true}
我无法获得 klout 分数来显示我做错了什么??
任何帮助都会很棒