Google, aşağıdaki örnekleri GitHub'da barındırır. Bu depoları çatallayabilir ve kodu kendi projeleriniz için referans olarak kullanabilirsiniz.
Google Picker
Google Seçici kod örneği, kullanıcıların bir web uygulamasındaki düğmeden açabileceği bir resim seçicinin veya yükleme sayfasının nasıl kullanılacağını gösterir.
Kaynağı görüntülemek veya indirmek için GitHub deposundaki Google Seçici'yi ziyaret edin.
Hızlı Düzenleyiciler ile dosyaları açma ve kaydetme
Bu Quickeditors kod örneğinde, Drive API ile dosyaların nasıl açılacağı ve kaydedileceği gösterilmektedir.
Drive platformuna özgü örneklerin her biri tek bir örnek uygulamayı yansıtır: text/* MIME türüne sahip Drive dosyalarını düzenleyebilecek bir Hızlı Düzenleyici adlı metin düzenleyici. Web sürümü, Drive'ın iki temel kullanım alanını uygular:
Her iki kullanım alanı için de akış benzerdir. Drive, kullanıcının oluşturma menüsünden veya kayıtlı bir MIME türüne sahip dosyanın bağlam menüsünden uygulamayı seçmesinden sonra kullanıcıyı uygulamaya yönlendirir.
Kaynağı görüntülemek veya indirmek için GitHub deposundaki Drive Quickeditors'ı ziyaret edin.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-02-24 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."]]],["Google offers code samples on GitHub for the Drive API. The Google Picker sample demonstrates using an image selector or upload page within a web app, accessible via a button. The Quickeditors sample illustrates how to open and save files, integrating with Drive's \"New\" button and \"Open with\" context menu. Both samples provide text editor apps for files with the `text/*` MIME type. Source code is available on GitHub, which can be forked.\n"]]