تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يعرض هذا القسم مجموعة من التطبيقات النموذجية وأمثلة "الوصفات" التي توضّح كيفية ترجمة إجراء مقصود في "العروض التقديمية من Google" إلى طلب بيانات من واجهة برمجة التطبيقات الخاصة بـ "العروض التقديمية من Google".
Codelabs
يعلّمك برنامج Slides التعليمي كيفية استخدام Google Slides API كأداة مخصّصة للعروض التقديمية من أجل تحليل تراخيص البرامج الأكثر شيوعًا.
ستتعرّف على كيفية طلب البحث عن جميع الرموز البرمجية المفتوحة المصدر على GitHub باستخدام BigQuery وإنشاء عرض تقديمي باستخدام Slides API لعرض نتائجك.
تطبيقات نموذجية
تتيح لك أداة سطر الأوامر Markdown to
Slides إنشاء عروض تقديمية من ملفات markdown.
يمكنك استخدام هذا المستودع لاستكشاف واجهة برمجة التطبيقات Slides API، أو إنشاء نسخة من المستودع وتعديل الرمز البرمجي لتوفير مخرجات Slides لتطبيق JavaScript.
وصفات طعام
توضّح الأمثلة الواردة في هذا القسم كيفية التعبير عن الإجراءات الشائعة في "العروض التقديمية من Google" كطلبات إلى Slides API.
يتم تقديم هذه الأمثلة كطلبات HTTP لتكون محايدة لغويًا. للتعرّف على كيفية تنفيذ بروتوكولات طلبات Slides API بلغة معيّنة باستخدام مكتبات برامج Google API، يمكنك الاطّلاع على الأدلة التالية:
عمليات الشرائح: وصفات توضّح كيفية إنشاء الشرائح ونقلها وحذفها في عرض تقديمي
عمليات الجدول: وصفات توضّح كيفية إنشاء الجداول وتعديلها ضمن شريحة
عمليات التحويل: وصفات توضّح كيفية تغيير حجم العناصر وموضعها ضمن شريحة.
غالبًا ما تتوفّر أكثر من طريقة لإكمال مهمة معيّنة باستخدام Slides API. استخدِم طريقة الدفعات
presentations.batchUpdate
حيثما أمكن لتجميع طلبات تعديل متعددة في طلب واحد.
يؤدي ذلك إلى تقليل الحمل الزائد لبروتوكول HTTP من جهة العميل، وتقليل عدد طلبات البحث، وتقليل عدد المراجعات على العرض التقديمي، وتطبيق جميع التغييرات بشكل متزامن.
لتحسين الأداء بشكل أكبر، استخدِم أقنعة الحقول عند قراءة العروض التقديمية والصفحات وعناصر الصفحات وتعديلها.
تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Samples\n\nThis section presents a set of sample applications and \"recipe\" examples that\ndemonstrate how to translate an intended Google Slides action into an\nGoogle Slides API request.\n\nCodelabs\n--------\n\nThe [Slides\ncodelab](https://codelabs.developers.google.com/codelabs/slides-api)\nteaches you how to use Google Slides API as a custom presentation tool for an\nanalysis of the most common software licenses.\n\nYou'll learn how to query all open source code on GitHub using [BigQuery](https://cloud.google.com/bigquery) and create a\nslide deck using Slides API to present your results.\n\nSample applications\n-------------------\n\nThe [Markdown to\nSlides](https://github.com/googleworkspace/md2googleslides)\ncommand-line tool lets you generate slide decks from markdown files.\n\nYou can use this to explore the Slides API, or fork the repository and\nmodify the code to provide Slides output to your JavaScript\napplication.\n\nRecipes\n-------\n\nThe examples listed in this section demonstrate how to express common actions in\nSlides as Slides API requests.\n\nThese examples are presented as HTTP requests to be language neutral. To learn\nhow to implement Slides API request protocols in a specific language\nusing Google API client libraries, see the following guides:\n\n- [Create a slide](/workspace/slides/api/guides/create-slide)\n- [Add shapes and text](/workspace/slides/api/guides/add-shape)\n- [Merge data into a presentation](/workspace/slides/api/guides/merge)\n- [Add charts to a slide](/workspace/slides/api/guides/add-chart)\n- [Edit and style text](/workspace/slides/api/guides/styling)\n\nRecipes in this section are divided into the following categories:\n\n- [Basic reading](/workspace/slides/api/samples/reading)---Recipes that show common ways of reading information from a presentation.\n- [Basic writing](/workspace/slides/api/samples/writing)---Recipes that show common ways of writing to a presentation.\n- [Element operations](/workspace/slides/api/samples/elements)---Recipes that show common page element creation and editing tasks.\n- [Presentation operations](/workspace/slides/api/samples/presentation)---Recipes that show how to create and manipulate a presentation.\n- [Slide operations](/workspace/slides/api/samples/slides)---Recipes that show how to create, move, and delete slides in a presentation.\n- [Table operations](/workspace/slides/api/samples/tables)---Recipes that show how to create and edit tables within a slide.\n- [Transform operations](/workspace/slides/api/samples/transform)---Recipes that show how to alter the size and positioning of elements within a slide.\n\nThere's often more than one way to complete a given task with the\nSlides API. Use the batch method\n[`presentations.batchUpdate`](/workspace/slides/api/reference/rest/v1/presentations/batchUpdate)\nwherever possible to bundle multiple update requests into a single method call.\nThis reduces client HTTP overhead, reduces the number of queries, minimizes the\nnumber of revisions on the presentation, and applies all the changes atomically.\n\nTo further improve performance, use [field\nmasks](/workspace/slides/api/guides/field-masks) when reading and updating presentations,\npages, and page elements."]]