會議外掛程式發生錯誤。使用範例:
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);
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
set | Conference | 如果錯誤類型為 AUTHENTICATION,外掛程式必須提供回呼外掛程式的網址,讓使用者登入。 |
set | Conference | 設定這個 Conference 的錯誤類型。 |
內容詳盡的說明文件
setAuthenticationUrl(authenticationUrl)
如果錯誤類型為 AUTHENTICATION,外掛程式必須提供回呼外掛程式的網址,讓使用者登入。這個欄位的長度上限為 1800 個字元。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
authentication | String | 要設定的驗證網址。 |
回攻員
ConferenceError:這個物件,用於串連
擲回
Error:如果提供的網址不是有效的 HTTP/HTTPS 網址,或是網址過長。
setConferenceErrorType(conferenceErrorType)
設定這個 ConferenceError 的錯誤類型。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
conference | Conference | 要設定的錯誤類型。 |
回攻員
ConferenceError:這個物件,用於串連