我是tumblr api的新手,嘗試使用JavaScript函數加載與用戶相關的所有博客。爲此,我使用了https://github.com/tumblr/tumblr.js的tumblr.js。如何在client.userInfo tumblr javascript函數中傳遞迴調url?
我正在使用下面的代碼來使它工作。
var tumblr = require('tumblr.js');
var client = tumblr.createClient({
consumer_key: 'jonJZTo19butVDvE191XA3ldsWwKkawkIzSrOqxuCo0B8RdE9k',
consumer_secret: 'rwpF8oZ17JuNr9GpkKKDbSmsb547rKPLxm1eEujgun7hzjyWSz',
token: 'XUeiaJNW6aD0Ynl0lSHZYofVW7ooFZLj7NmlSGmiClbVC5VPk8',
token_secret: 'rPs6Upq7R46D8Ei7s8s8tEVT1Qc6ETMUaPzcsp5KUi2tDtHtDN'
});
client.userInfo("http://localhost/Default.aspx");
但它總是拋出錯誤「無法加載資源:服務器與404狀態響應(未找到)」。
如果我使用client.userInfo();那麼我得到「GET/V2 /用戶/信息?404(未找到)」錯誤。
請幫我解決這個問題。
感謝 潘卡