簡體   English   中英

Google Apps API(Calendar v3)返回404錯誤

[英]Google Apps API (Calendar v3) returns 404 error

我使用Google API(Calendar v3)已有一段時間,沒有問題,直到一周前開始收到錯誤消息。 我仍然可以授權,但我提出的任何請求均會返回404錯誤。 我也嘗試使用另一個Google Apps帳戶,並遇到了同樣的問題。

// Load the API and make an API call.
function makeApiCall() {
    gapi.client.load('calendar', 'v3', function() { 
        var request = gapi.client.calendar.events.list({ 
            'calendarId': 'primary' 
        }); 
        request.execute(function(resp) { 
            console.log (resp);
        }); 
    }); 
}

控制台日志是:代碼:404數據:Array [1]錯誤:對象消息:“未找到” 原型 :對象

這是已打開的Google代碼第33期的鏈接。 以防萬一其他人在嘗試找到解決方案時首先找到了這個。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM