با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نشانی اینترنتی ایجاد می کند که می تواند در iframe برای نمایش مجوزهای (در صورت وجود) یک محصول ارائه شود. یک سرپرست سازمانی باید این مجوزها را ببیند و آنها را از طرف سازمان خود بپذیرد تا آن محصول را تأیید کند.
سرپرستان باید مجوزهای نمایش داده شده را با تعامل با یک عنصر رابط کاربری جداگانه در کنسول EMM بپذیرند، که به نوبه خود باید استفاده از این نشانی اینترنتی را به عنوان ویژگی approvalUrlInfo.approvalUrl در تماس Products.approve برای تأیید محصول فعال کند. این URL فقط برای نمایش مجوزها تا 1 روز قابل استفاده است.
درخواست کنید
درخواست HTTP
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/generateApprovalUrl
پارامترها
نام پارامتر
ارزش
توضیحات
پارامترهای مسیر
enterpriseId
string
شناسه شرکت
productId
string
شناسه محصول.
پارامترهای پرس و جو اختیاری
languageCode
string
کد زبان BCP 47 که برای نامهای مجوز و توضیحات در iframe برگشتی استفاده میشود، برای مثال "en-US".
در صورت موفقیت آمیز بودن، این روش یک بدنه پاسخ با ساختار زیر را برمی گرداند:
{
"url": string
}
نام ملک
ارزش
توضیحات
یادداشت ها
url
string
نشانی اینترنتی که میتواند در iframe برای نمایش مجوزها (در صورت وجود) یک محصول ارائه شود. با استفاده از تماس Products.approve ، میتوان از این نشانی وب برای تأیید محصول تنها یک بار و تنها در عرض 24 ساعت پس از تولید استفاده کرد. اگر محصول در حال حاضر تایید نشده باشد و هیچ مجوزی نداشته باشد، این URL به صفحه خالی اشاره می کند. اگر محصول در حال حاضر تأیید شده باشد، URL تنها در صورتی ایجاد میشود که آن محصول از آخرین بار تأیید مجوزهای خود را اضافه کرده باشد، و URL فقط مجوزهای جدیدی را نشان میدهد که هنوز پذیرفته نشدهاند.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eGenerates a URL for an iframe to display product permissions for enterprise admin approval, accessible until September 30, 2025.\u003c/p\u003e\n"],["\u003cp\u003eAdmins approve permissions through a separate UI element, triggering a \u003ccode\u003eProducts.approve\u003c/code\u003e call with the generated URL.\u003c/p\u003e\n"],["\u003cp\u003eThe URL is valid for 24 hours and displays only new permissions added since the last approval.\u003c/p\u003e\n"],["\u003cp\u003eThis method is deprecated, new integrations should refer to recommended alternatives.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Products: generateApprovalUrl\n\n| **Note:** Requires [authorization](#auth).\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new\n| recommendations](/android/work/deprecations#recommended_alternative). \n| **This method will no longer be accessible by\n| anyone after September 30, 2025.**\nGenerates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product. \n\nAdmins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the `approvalUrlInfo.approvalUrl` property in a `Products.approve` call to approve the product. This URL can only be used to display permissions for up to 1 day.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/generateApprovalUrl\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|-------------------------------------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `productId` | `string` | The ID of the product. |\n| **Optional query parameters** |||\n| `languageCode` | `string` | The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance \"en-US\". |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"url\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `url` | `string` | A URL that can be rendered in an iframe to display the permissions (if any) of a product. This URL can be used to approve the product only once and only within 24 hours of being generated, using the `Products.approve` call. If the product is currently unapproved and has no permissions, this URL will point to an empty page. If the product is currently approved, a URL will only be generated if that product has added permissions since it was last approved, and the URL will only display those new permissions that have not yet been accepted. | |"]]