आपको Google Photos Library API का लेगसी दस्तावेज़ दिख रहा है.
Method: albums.unshare
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पहले शेयर किए गए किसी एल्बम को निजी के तौर पर मार्क करता है. इसका मतलब है कि एल्बम अब शेयर नहीं किया जाएगा और जिन लोगों के पास एल्बम का मालिकाना हक नहीं है उनके पास इसका ऐक्सेस नहीं रहेगा. एल्बम से वह सारा कॉन्टेंट हटा दिया जाएगा जिसका मालिकाना हक आपके पास नहीं है. अगर किसी ऐसे व्यक्ति ने एल्बम को पहले अपनी लाइब्रेरी में जोड़ा है जो मालिक नहीं है, तो उसकी सभी फ़ोटो अपनी लाइब्रेरी में सेव रहेंगी. यह कार्रवाई सिर्फ़ उन एल्बम पर की जा सकती है जिन्हें डेवलपर ने एपीआई की मदद से बनाया है.
एचटीटीपी अनुरोध
POST https://photoslibrary.googleapis.com/v1/albums/{albumId}:unshare
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
albumId |
string
ज़रूरी है. शेयर नहीं किए जाने वाले एल्बम का आइडेंटिफ़ायर. यह एल्बम आईडी, डेवलपर के बनाए गए किसी एल्बम से जुड़ा होना चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, तो जवाब का मुख्य हिस्सा खाली होता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/photoslibrary.sharing
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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 (UTC) को अपडेट किया गया."],[[["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."]]],["The content details how to unshare a previously shared album via API. It uses a `POST` request to the provided URL, including the `albumId` as a path parameter. The request body must be empty. Upon successful execution, the response body will also be empty. This action removes non-owners' access and content from the album. Only albums created through the API can be unshared. It also requires the `https://www.googleapis.com/auth/photoslibrary.sharing` OAuth scope.\n"]]