Class ConferenceError

ConferenceError

會議外掛程式發生錯誤。使用範例:

const conferenceError =
    ConferenceDataService.newConferenceError().setConferenceErrorType(
        ConferenceDataService.ConferenceErrorType.PERMANENT,
    );
驗證範例:
const state = ScriptApp.newStateToken()
                  .withMethod('myLoginCallbackFunction')
                  .withTimeout(3600)
                  .createToken();

const authenticationUrl = `https://script.google.com/a/google.com/d/${
    ScriptApp.getScriptId()}/usercallback?state=${state}`;

const conferenceError =
    ConferenceDataService.newConferenceError()
        .setConferenceErrorType(
            ConferenceDataService.ConferenceErrorType.AUTHENTICATION,
            )
        .setAuthenticationUrl(authenticationUrl);

方法

方法傳回類型簡短說明
setAuthenticationUrl(authenticationUrl)ConferenceError如果錯誤類型為 AUTHENTICATION,外掛程式必須提供回呼外掛程式的網址,讓使用者登入。
setConferenceErrorType(conferenceErrorType)ConferenceError設定這個 ConferenceError 的錯誤類型。

內容詳盡的說明文件

setAuthenticationUrl(authenticationUrl)

如果錯誤類型為 AUTHENTICATION,外掛程式必須提供回呼外掛程式的網址,讓使用者登入。這個欄位的長度上限為 1800 個字元。

參數

名稱類型說明
authenticationUrlString要設定的驗證網址。

回攻員

ConferenceError:這個物件,用於串連

擲回

Error:如果提供的網址不是有效的 HTTP/HTTPS 網址,或是網址過長。


setConferenceErrorType(conferenceErrorType)

設定這個 ConferenceError 的錯誤類型。

參數

名稱類型說明
conferenceErrorTypeConferenceErrorType要設定的錯誤類型。

回攻員

ConferenceError:這個物件,用於串連