أنت تعرض المستندات القديمة لواجهة برمجة التطبيقات Google Photos Library API.
Method: sharedAlbums.leave
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الخروج من ألبوم مشترك تم الانضمام إليه سابقًا نيابةً عن مستخدم "صور Google" يجب ألا يمتلك المستخدم هذا الألبوم.
طلب HTTP
POST https://photoslibrary.googleapis.com/v1/sharedAlbums:leave
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
نص الطلب
يحتوي نص الطلب على بيانات بالبنية التالية:
تمثيل JSON |
{
"shareToken": string
} |
الحقول |
shareToken |
string
مطلوب. رمز مميّز لمغادرة الألبوم المشترَك نيابةً عن المستخدم
|
نص الاستجابة
إذا كانت الاستجابة ناجحة، يكون نص الاستجابة فارغًا.
نطاقات الأذونات
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/photoslibrary.sharing
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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`"]]