با Picker API جدید و تغییرات مهم Library API آشنا شوید.
جزئیات اینجا
Method: albums.batchRemoveMediaItems
با مجموعهها، منظم بمانید
ذخیره و دستهبندی محتوا براساس اولویتهای شما.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-07 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-01-07 بهوقت ساعت هماهنگ جهانی."],[[["This operation removes one or more media items from a specified album, requiring that both the items and the album were created by the developer via the API."],["Only media items added by the user or the entire album if created by the user can be removed from shared albums."],["The request will entirely fail if any invalid media item or album is specified, as partial success is not supported."],["To use this feature, you need to send a POST request to `https://photoslibrary.googleapis.com/v1/albums/{albumId}:batchRemoveMediaItems`, providing the `albumId` and a list of `mediaItemIds` in the request body."],["Authorization is required with either the `https://www.googleapis.com/auth/photoslibrary` or `https://www.googleapis.com/auth/photoslibrary.edit.appcreateddata` scope."]]],["This outlines the process of removing media items from an album via the Google Photos API. It involves a `POST` request to a specific URL using the `albumId` as a path parameter. The request body, in JSON format, requires an array of `mediaItemIds` which are to be removed. The `mediaItemIds` array must not be empty or contain duplicates, limited to a maximum of 50 IDs. Successful requests result in an empty response body, while failures result in no changes. Authorization requires specific OAuth scopes.\n"]]