Google Photos Library API ile ilgili eski dokümanları görüntülüyorsunuz.
Method: sharedAlbums.leave
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Google Fotoğraflar kullanıcısı adına daha önce katılmış bir paylaşılan albümden ayrılır. Kullanıcının bu albümün sahibi olmaması gerekir.
HTTP isteği
POST https://photoslibrary.googleapis.com/v1/sharedAlbums:leave
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
İstek içeriği
İstek gövdesi aşağıdaki yapıya sahip verileri içerir:
JSON gösterimi |
{
"shareToken": string
} |
Alanlar |
shareToken |
string
Zorunlu. Kullanıcı adına paylaşılan albümden çıkmak için jeton.
|
Yanıt gövdesi
Başarılı olursa yanıt gövdesi boş olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/photoslibrary.sharing
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\u003cp\u003eLeaves a previously-joined shared album for a Google Photos user who doesn't own the album.\u003c/p\u003e\n"],["\u003cp\u003eRequires a POST request to the \u003ccode\u003ehttps://photoslibrary.googleapis.com/v1/sharedAlbums:leave\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain the shareToken of the album to be left.\u003c/p\u003e\n"],["\u003cp\u003eUpon success, the API returns an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003ehttps://www.googleapis.com/auth/photoslibrary.sharing\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: sharedAlbums.leave\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLeaves a previously-joined shared album on behalf of the Google Photos user. The user must not own this album.\n\n### HTTP request\n\n`POST https://photoslibrary.googleapis.com/v1/sharedAlbums:leave`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------|\n| ``` { \"shareToken\": string } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------|\n| `shareToken` | `string` Required. Token to leave the shared album on behalf of the user. |\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/photoslibrary.sharing`"]]