Class AuthorizationAction
AuthorizationAction
An authorization action that will send the user to the AuthorizationUrl when clicked.
CardService.newAuthorizationAction().setAuthorizationUrl('http://google.com/');
Detailed documentation
setAuthorizationUrl(authorizationUrl)
Sets the authorization URL that user is taken to from the authorization prompt. Required.
Parameters
Name | Type | Description |
authorizationUrl | String | The authorization URL to set. |
Return
AuthorizationAction
— This object, for chaining.
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-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["`AuthorizationAction` enables sending users to a specified URL for authorization when clicked."],["It's created using `CardService.newAuthorizationAction()` and configured with `setAuthorizationUrl()`."],["The `setAuthorizationUrl()` method requires an authorization URL as a string parameter."],["`AuthorizationAction` provides a streamlined approach to initiating user authorization within Google Workspace add-ons."]]],["The `AuthorizationAction` object directs users to a specified URL when clicked. The core functionality involves using the `setAuthorizationUrl(authorizationUrl)` method to define this URL. This method requires a string parameter, `authorizationUrl`, which is the destination the user will be sent to. This method returns the `AuthorizationAction` object, allowing for method chaining. The `CardService.newAuthorizationAction()` creates the action to use with the `setAuthorizationUrl`.\n"]]