我一直在嘗試瞭解一段時間的API。但我只是失去了...無法讓Google Plus API正常工作
我想做一些簡單的檢索和顯示我的Google Plus標語。
$.getJSON("https://www.googleapis.com/plus/v1/people/103039534797695934641?key=xxxxxxxxxxxxxxxxxxxxxxxxxxx", function(data) {
html = data.nickname;
// Insert the generated HTML to the DOM
$('.shots').html(html);
});
我在做什麼錯? 我應該在鏈接中插入一個回調 - 如果是這樣,你知道這是怎麼完成的嗎? 我嘗試了所有我能想到的方法。
你確定關鍵是好的。使用郵差或其他休息客戶端來查看結果 – Carlos487
是的,關鍵我是正確的。 如果按照這個鏈接:https://www.googleapis.com/plus/v1/people/103039534797695934641?key=AIzaSyBaDZGM-uXuHc-VZZ2DINzVBcIDMN_54zg 然後就可以看到什麼,我應該得到。 – RicoRos