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-11-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"]],["上次更新時間:2024-11-07 (世界標準時間)。"],[[["Makes a shared album private, removing sharing access and all non-owner content, effective March 31, 2025."],["Non-owners who added the album to their library will keep any photos already in their library."],["Only applicable to albums created by the developer using the API, requiring the album ID in the request."],["Requires authorization with the `https://www.googleapis.com/auth/photoslibrary.sharing` scope."],["The request body should be empty, and a successful operation results in an empty response body."]]],[]]