A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/apps-script/reference/conference-data/conference-error below:

Class ConferenceError | Apps Script

Class ConferenceError

Stay organized with collections Save and categorize content based on your preferences.

ConferenceError

Error that occurred in a conferencing add-on. Example usage:

const conferenceError =
    ConferenceDataService.newConferenceError().setConferenceErrorType(
        ConferenceDataService.ConferenceErrorType.PERMANENT,
    );

Example with authentication:

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);
Detailed documentation setAuthenticationUrl(authenticationUrl)

If the error type is AUTHENTICATION, the add-on must provide a URL calling back into the add-on to allow users to log in. The maximum length for this field is 1800 characters.

Parameters Name Type Description authenticationUrl String The authentication URL to set. Return

ConferenceError — this object, for chaining

Throws

Error — if the provided URL is not a valid http/https URL or is too long.

setConferenceErrorType(conferenceErrorType)

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-12-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-03 UTC."],[[["`ConferenceError` objects represent errors that occur within conferencing add-ons and can be created using `ConferenceDataService.newConferenceError()`."],["These errors have a type, which can be set using `setConferenceErrorType()`, and may require an authentication URL if the type is `AUTHENTICATION`, set using `setAuthenticationUrl()`."],["If the error type is `AUTHENTICATION`, the provided authentication URL should redirect users back to the add-on for login purposes and should be a valid http/https URL with a maximum length of 1800 characters."],["Both `setAuthenticationUrl()` and `setConferenceErrorType()` return the `ConferenceError` object itself, enabling method chaining for easier error configuration."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4