2025 年 4 月 1 日,Library API 中的部分範圍已遭到移除。
詳情請參閱這篇文章。
範例
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以參考舊版 Library API 範例。
請注意,Library API 正在更新,以便專注於管理應用程式建立的相片和影片。在 2025 年 3 月 31 日變更生效後,舊版範例中顯示的部分功能可能無法使用。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[[["\u003cp\u003eExplore sample code for the legacy Google Photos Library API.\u003c/p\u003e\n"],["\u003cp\u003eNote that the Library API is undergoing updates, potentially impacting the availability of some functionalities demonstrated in the legacy samples after March 31, 2025.\u003c/p\u003e\n"]]],["The content directs users to legacy Library API samples. It highlights that the Library API is undergoing updates to prioritize managing photos and videos created by the user's app. Certain functionalities shown in the legacy samples may become unavailable after March 31, 2025, due to these changes. Users can still explore the legacy samples for reference, understanding that some features will be deprecated.\n"],null,["# Samples\n\nYou can explore the [legacy Library API samples](/photos/library/legacy/samples).\n\nRemember that the Library API is being updated to focus on managing photos and\nvideos created by your app. Some of the functionalities demonstrated in the\nlegacy samples might not be available after the changes take effect on\nMarch 31, 2025."]]