Class AuthorizationAction
AuthorizationAction یک اقدام مجوز که پس از کلیک کردن، کاربر را به AuthorizationUrl میفرستد.
CardService.newAuthorizationAction()
.setAuthorizationUrl("http://google.com/");
مستندات دقیق
setAuthorizationUrl(authorizationUrl)
URL مجوزی را که کاربر از درخواست مجوز به آن برده می شود را تنظیم می کند. مورد نیاز.
پارامترها
نام | تایپ کنید | توضیحات |
---|
authorizationUrl | String | نشانی اینترنتی مجوز برای تنظیم. |
بازگشت
AuthorizationAction
- این شی، برای زنجیر کردن.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["`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"]]