Class ConferenceError

ConferenceError

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

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

var authenticationUrl = 'https://script.google.com/a/google.com/d/'
    + ScriptApp.getScriptId()
    + '/usercallback?state='
    + state;

var 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:這個物件,用於鏈結