Class ConferenceError

ConferenceError

Lỗi xảy ra trong một tiện ích bổ sung hội nghị truyền hình. Ví dụ về cách sử dụng:

const conferenceError =
    ConferenceDataService.newConferenceError().setConferenceErrorType(
        ConferenceDataService.ConferenceErrorType.PERMANENT,
    );
Ví dụ có xác thực:
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);

Phương thức

Phương thứcKiểu dữ liệu trả vềMô tả ngắn
setAuthenticationUrl(authenticationUrl)ConferenceErrorNếu loại lỗi là AUTHENTICATION, thì tiện ích bổ sung phải cung cấp một URL gọi lại vào tiện ích bổ sung để cho phép người dùng đăng nhập.
setConferenceErrorType(conferenceErrorType)ConferenceErrorĐặt loại lỗi của ConferenceError này.

Tài liệu chi tiết

setAuthenticationUrl(authenticationUrl)

Nếu loại lỗi là AUTHENTICATION, thì tiện ích bổ sung phải cung cấp một URL gọi lại vào tiện ích bổ sung để cho phép người dùng đăng nhập. Độ dài tối đa cho trường này là 1.800 ký tự.

Thông số

TênLoạiMô tả
authenticationUrlStringURL xác thực cần thiết lập.

Cầu thủ trả bóng

ConferenceError – đối tượng này, để liên kết

Gửi

Error – nếu URL bạn cung cấp không phải là URL http/https hợp lệ hoặc quá dài.


setConferenceErrorType(conferenceErrorType)

Đặt loại lỗi của ConferenceError này.

Thông số

TênLoạiMô tả
conferenceErrorTypeConferenceErrorTypeLoại lỗi cần đặt.

Cầu thủ trả bóng

ConferenceError – đối tượng này, để liên kết