AI-generated Key Takeaways
-
AuthorizationAction
enables sending users to a specified URL for authorization when clicked. -
It's created using
CardService.newAuthorizationAction()
and configured withsetAuthorizationUrl()
. -
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.
An authorization action that will send the user to the AuthorizationUrl when clicked.
CardService .newAuthorizationAction().setAuthorizationUrl('http://google.com/');
Methods
Method | Return type | Brief description |
---|---|---|
set | Authorization | Sets the authorization URL that user is taken to from the authorization prompt. |
Detailed documentation
setAuthorizationUrl(authorizationUrl)
Sets the authorization URL that user is taken to from the authorization prompt. Required.
Parameters
Name | Type | Description |
---|---|---|
authorization | String | The authorization URL to set. |
Return
Authorization
— This object, for chaining.