Class AuthorizationAction Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The
AuthorizationActionsends the user to the specifiedAuthorizationUrlwhen clicked.The
setAuthorizationUrl(authorizationUrl)method is used to define the URL the user will be directed to from the authorization prompt.This method requires a
Stringparameter for the authorization URL and returns theAuthorizationActionobject for chaining.
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.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.