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 - 此对象,用于链接