您目前查看的是 Google Photos Library API 的舊版說明文件。
Method: albums.unshare
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
將先前共享的相簿標示為私人。也就是說,相簿將不再共用,所有非擁有者都無法再存取相簿。所有非擁有者內容都會從相簿中移除。非擁有者之前曾將相簿加入相片庫,但仍保留相片庫中的所有相片。這項動作只能對開發人員透過 API 建立的相簿執行。
HTTP 要求
POST https://photoslibrary.googleapis.com/v1/albums/{albumId}:unshare
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
albumId |
string
必要欄位。要取消分享的相簿 ID。這個相簿 ID 必須屬於開發人員建立的相簿。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/photoslibrary.sharing
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-12 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2024-09-12 (世界標準時間)。"],[[["Unshares a previously shared album, making it private and removing non-owner access."],["Non-owners who added the album to their library will retain their photos, but lose access to the shared album."],["Only albums created by the developer via the API can be unshared using this method."],["The request body should be empty, and a successful response will also be empty."],["Requires authorization with the `https://www.googleapis.com/auth/photoslibrary.sharing` scope."]]],[]]