Class AuthorizationAction
AutorisierungAktion
Eine Autorisierungsaktion, bei der der Nutzer nach dem Klicken auf die AuthorizationUrl weitergeleitet wird.
CardService.newAuthorizationAction().setAuthorizationUrl('http://google.com/');
Detaillierte Dokumentation
setAuthorizationUrl(authorizationUrl)
Hiermit wird die Autorisierungs-URL festgelegt, zu der der Nutzer über den Autorisierungsaufforderung weitergeleitet wird. Erforderlich.
Parameter
Name | Typ | Beschreibung |
authorizationUrl | String | Die Autorisierungs-URL, die festgelegt werden soll. |
Rückflug
AuthorizationAction
– dieses Objekt, zur Verkettung
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-22 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-12-22 (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"]]