Google מארחת את הדוגמאות הבאות ב-GitHub. אפשר ליצור ענף (fork) של המאגרים האלה ולהשתמש בקוד כמקור מידע לפרויקטים שלכם.
Google Picker
דוגמת הקוד של Google Picker מראה איך להשתמש בבורר תמונות או בדף העלאה שהמשתמשים יכולים לפתוח באמצעות לחצן באפליקציית אינטרנט.
כדי להציג או להוריד את המקור, אפשר להיכנס לדף Google Picker במאגר GitHub.
פתיחה ושמירה של קבצים באמצעות Quickeditors
דוגמת הקוד הזו של Quickeditors מראה איך לפתוח ולשמור קבצים באמצעות Drive API.
כל אחת מהדוגמאות הספציפיות לפלטפורמת Drive משקפת אפליקציה לדוגמה אחת: כלי לעריכת טקסט שנקרא Quickeditor, שאפשר לערוך בו קובצי Drive עם סוג ה-MIME text/*. בגרסת האינטרנט יש שני תרחישים לדוגמה לשימוש ב-Drive:
[[["התוכן קל להבנה","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-12-21 (שעון UTC)."],[[["This section provides Google Drive API samples, including code for integrating Google Picker and Quickeditors into web applications."],["The Google Picker sample demonstrates how to implement an image selector or upload page within a web app."],["Quickeditors samples showcase opening and saving files with the Drive API, including integration with Drive UI's \"New\" and \"Open with\" functionalities."],["Source code for both Google Picker and Quickeditors is available on GitHub for reference and adaptation in your projects."]]],[]]