आपको Google Photos Library API का लेगसी दस्तावेज़ दिख रहा है.
Method: sharedAlbums.leave
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Photos का इस्तेमाल करने वाले व्यक्ति की ओर से, पहले से ही शेयर किए गए किसी एल्बम से बाहर निकलता है. यह ज़रूरी नहीं है कि उपयोगकर्ता के पास इस एल्बम का मालिकाना हक हो.
एचटीटीपी अनुरोध
POST https://photoslibrary.googleapis.com/v1/sharedAlbums:leave
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में यह डेटा होता है:
JSON के काेड में दिखाना |
{
"shareToken": string
} |
फ़ील्ड |
shareToken |
string
ज़रूरी है. उपयोगकर्ता की ओर से शेयर किए गए एल्बम को छोड़ने के लिए टोकन.
|
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, तो जवाब का मुख्य हिस्सा खाली होता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/photoslibrary.sharing
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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`"]]