आपको Google Photos Library API का लेगसी दस्तावेज़ दिख रहा है.
सैंपल
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Photos Library API के सैंपल, GitHub पर Google Photos के सैंपल रिपॉज़िटरी में उपलब्ध हैं. इसके अलावा, आपको इस डेवलपर की गाइड के हर पेज पर कोड स्निपेट मिल सकते हैं.
GitHub पर मौजूद सैंपल
GitHub डेटा स्टोर करने की जगह में एक सैंपल मौजूद है. इसमें, Node JS का इस्तेमाल करके ऑनलाइन फ़ोटो फ़्रेम में लागू किए गए Library API की खोज और सूची की सुविधा दिखाई गई है.
हर क्लाइंट लाइब्रेरी के लिए GitHub की रिपॉज़िटरी में कई सैंपल होते हैं. इनसे पता चलता है कि लाइब्रेरी एपीआई को अलग-अलग भाषाओं में कैसे इस्तेमाल किया जा सकता है.
समस्या का हल
अगर आपको सैंपल का इस्तेमाल करने में समस्या आ रही है, तो पक्का करें कि आपने ये काम कर लिए हैं:
सैंपल प्रोजेक्ट में OAuth क्रेडेंशियल जोड़ने होंगे. ज़्यादा जानकारी के लिए,
'README' देखें.
`
डेवलपर की गाइड में कोड स्निपेट
डेवलपर की गाइड में मौजूद हर पेज में, कोड स्निपेट और REST कॉल शामिल होते हैं. ये एपीआई की खास सुविधाओं के बारे में बताते हैं. सुविधाओं के लिए उपलब्ध कुछ गाइड में ये शामिल हैं:
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eComprehensive Google Photos Library API samples are available in the \u003ca href=\"https://github.com/googlesamples/google-photos\"\u003eGoogle Photos sample repository\u003c/a\u003e on GitHub and as code snippets throughout this developer's guide.\u003c/p\u003e\n"],["\u003cp\u003eThe GitHub samples demonstrate API functionality through an online photo frame application using Node.js and offer examples in various programming languages within individual client library repositories.\u003c/p\u003e\n"],["\u003cp\u003eThis guide features code snippets and REST calls on each page, illustrating specific API features such as album management, library content listing, and media searching with filters.\u003c/p\u003e\n"],["\u003cp\u003eBefore running samples, ensure you've set up a Google Developer's project, enabled the API, and configured OAuth credentials as detailed in the setup instructions.\u003c/p\u003e\n"]]],["The Google Photos Library API offers samples in two locations: a GitHub repository and the developer's guide. The GitHub repository provides a Node.js sample demonstrating search and listing functionalities, and client library repositories offer samples in multiple languages. The developer's guide includes code snippets and REST calls for features like managing albums, listing content, and searching/filtering media. To use the samples, users must set up a Google Developer's project, enable the API, and configure OAuth credentials.\n"],null,["# Samples for the Google Photos Library API are available from the [Google Photos sample\nrepository](https://github.com/googlesamples/google-photos) on GitHub. In\naddition, you can find code snippets on each page of this developer's guide.\n\nSamples on GitHub\n-----------------\n\nThe [GitHub repository](https://github.com/googlesamples/google-photos) contains\na sample that shows the search and list functionality of the Library API\nas implemented in an online photo frame using Node JS.\n\nThe [GitHub repositories for each client\nlibrary](/photos/library/guides/client-libraries) contain multiple samples that\nshow how to use the Library API in different languages.\n\n### Troubleshooting\n\nIf you're having trouble using the samples, make sure that you've done the\nfollowing:\n\n- Set up a Google Developer's project.\n- [Enabled the API](/photos/library/guides/get-started#enable-the-api).\n- [Set up OAuth credentials](/photos/library/guides/get-started#request-id).\n\nThe OAuth credentials need to be added to the sample project. For details, see\nthe README.\n\\`\n\nCode snippets in the developer's guide\n--------------------------------------\n\nEach page in the developer's guide includes code snippets and REST calls that\nillustrate particular features of the API. Some of the guides available for\nfeatures include the following:\n\n- [Managing albums](/photos/library/guides/manage-albums)\n- [Listing library contents, albums, and media\n items](/photos/library/guides/list)\n- [Searching media and applying filters](/photos/library/guides/apply-filters)"]]