أنت تعرض المستندات القديمة لواجهة برمجة التطبيقات Google Photos Library API.
النماذج
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تتوفّر عيّنات لواجهة برمجة التطبيقات Google Photos Library API من مستودع "صور Google" على GitHub. بالإضافة إلى ذلك، يمكنك العثور على مقتطفات من الرموز البرمجية في كل صفحة من دليل المطوّر هذا.
نماذج على GitHub
يحتوي مستودع GitHub على
نموذج يعرض وظيفة البحث والقائمة في Library API
كما تم تنفيذها في إطار صور على الإنترنت باستخدام Node JS.
تحتوي مستودعات GitHub لكل مكتبة
عميل على نماذج متعددة تشرح كيفية استخدام Library API بلغات مختلفة.
تحديد المشاكل وحلّها
إذا كنت تواجه مشكلة في استخدام العيّنات، تأكَّد من تنفيذ الخطوات التالية:
يجب إضافة بيانات اعتماد OAuth إلى نموذج المشروع. للحصول على التفاصيل،
راجع الملف التمهيدي.
`
مقتطفات الرموز البرمجية في دليل المطوّر
تتضمّن كل صفحة في دليل المطوِّر مقتطفات من الرموز واستدعاءات REST توضّح ميزات معيّنة لواجهة برمجة التطبيقات. في ما يلي بعض الأدلة المتاحة للميزات:
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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)"]]