{"id":19310614,"url":"https://github.com/sepppenner/googledriveexample","last_synced_at":"2025-10-27T19:11:39.822Z","repository":{"id":82868780,"uuid":"91334027","full_name":"SeppPenner/GoogleDriveExample","owner":"SeppPenner","description":"GoogleDriveExample is an assembly/ library on how to work with the Google.Apis.Drive.v3.dll.","archived":false,"fork":false,"pushed_at":"2025-01-07T17:40:38.000Z","size":148,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T00:24:44.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeppPenner.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-15T12:15:11.000Z","updated_at":"2025-03-19T18:34:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"162c81fe-359a-40ba-967e-16f4fab48837","html_url":"https://github.com/SeppPenner/GoogleDriveExample","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FGoogleDriveExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FGoogleDriveExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FGoogleDriveExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FGoogleDriveExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeppPenner","download_url":"https://codeload.github.com/SeppPenner/GoogleDriveExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250249140,"owners_count":21399403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:25:08.697Z","updated_at":"2025-10-27T19:11:39.729Z","avatar_url":"https://github.com/SeppPenner.png","language":"C#","funding_links":["https://patreon.com/SeppPennerOpenSourceDevelopment","https://paypal.me/th070795"],"categories":[],"sub_categories":[],"readme":"GoogleDriveExample\n====================================\n\nGoogleDriveExample is an assembly/ library on how to work with the Google.Apis.Drive.v3.dll.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/qmem8i9v5no63wfg?svg=true)](https://ci.appveyor.com/project/SeppPenner/googledriveexample)\n[![GitHub issues](https://img.shields.io/github/issues/SeppPenner/GoogleDriveExample.svg)](https://github.com/SeppPenner/GoogleDriveExample/issues)\n[![GitHub forks](https://img.shields.io/github/forks/SeppPenner/GoogleDriveExample.svg)](https://github.com/SeppPenner/GoogleDriveExample/network)\n[![GitHub stars](https://img.shields.io/github/stars/SeppPenner/GoogleDriveExample.svg)](https://github.com/SeppPenner/GoogleDriveExample/stargazers)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/SeppPenner/GoogleDriveExample/master/License.txt)\n[![Known Vulnerabilities](https://snyk.io/test/github/SeppPenner/GoogleDriveExample/badge.svg)](https://snyk.io/test/github/SeppPenner/GoogleDriveExample)\n[![Blogger](https://img.shields.io/badge/Follow_me_on-blogger-orange)](https://franzhuber23.blogspot.de/)\n[![Patreon](https://img.shields.io/badge/Patreon-F96854?logo=patreon\u0026logoColor=white)](https://patreon.com/SeppPennerOpenSourceDevelopment)\n[![PayPal](https://img.shields.io/badge/PayPal-00457C?logo=paypal\u0026logoColor=white)](https://paypal.me/th070795)\n\n## Basic usage\n```csharp\npublic void Test()\n{\n    ICustomGDriveService _service = new CustomGDriveService();\n    _service.xy //See the interface section for more information\n}\n```\n\n## Interface ICustomGDriveService\n```csharp\nusing System;\nusing Google.Apis.Drive.v3;\nusing GoogleDriveExample.Implementation;\n\nnamespace GoogleDriveExample.Interfaces\n{\n    /// \u003csummary\u003e\n    ///     The Google \u003csee cref=\"CustomGDriveService\" /\u003e class\n    /// \u003c/summary\u003e\n    public interface ICustomGDriveService\n    {\n        /// \u003csummary\u003e\n        ///     Gets the used quota of the account\n        /// \u003c/summary\u003e\n        /// \u003cparam name=\"service\"\u003eThe \u003csee cref=\"DriveService\" /\u003e that is needed\u003c/param\u003e\n        /// \u003creturns\u003eThe used quota of the account\u003c/returns\u003e\n        long GetQuotaUsed(DriveService service);\n\n        /// \u003csummary\u003e\n        ///     Gets the total quota (is 15 GB) of the account\n        /// \u003c/summary\u003e\n        /// \u003cparam name=\"service\"\u003eThe \u003csee cref=\"DriveService\" /\u003e that is needed\u003c/param\u003e\n        /// \u003creturns\u003eThe total quota of the account\u003c/returns\u003e\n        long GetQuotaTotal(DriveService service);\n\n        /// \u003csummary\u003e\n        ///     Uploads a file to GDrive with \"everone that has the link can read the file\" rights\n        /// \u003c/summary\u003e\n        /// \u003cparam name=\"service\"\u003eThe \u003csee cref=\"DriveService\" /\u003e that is needed\u003c/param\u003e\n        /// \u003cparam name=\"uploadFile\"\u003eThe File that should be uploaded\u003c/param\u003e\n        /// \u003cparam name=\"parent\"\u003eThe parent folder\u003c/param\u003e\n        /// \u003creturns\u003eThe download link to the file\u003c/returns\u003e\n        string UploadToGDrive(DriveService service, string uploadFile, string parent);\n\n        /// \u003csummary\u003e\n        ///     Gets the root folder id of the account\n        /// \u003c/summary\u003e\n        /// \u003cparam name=\"service\"\u003eThe \u003csee cref=\"DriveService\" /\u003e that is needed\u003c/param\u003e\n        /// \u003creturns\u003eThe root folder id for the account\u003c/returns\u003e\n        string GetRootFolderId(DriveService service);\n\n        /// \u003csummary\u003e\n        ///     Gets the \u003csee cref=\"DriveService\" /\u003e needed in the methods above\n        /// \u003c/summary\u003e\n        /// \u003cparam name=\"clientId\"\u003eThe client id that needs to be set inside the Google account (API-Key)\u003c/param\u003e\n        /// \u003cparam name=\"clientSecret\"\u003eThe client secret/ password\u003c/param\u003e\n        /// \u003cparam name=\"userName\"\u003eThe client username\u003c/param\u003e\n        /// \u003creturns\u003eThe \u003csee cref=\"DriveService\" /\u003e needed to authenticate the above methods\u003c/returns\u003e\n        DriveService GetDriveService(string clientId, string clientSecret, string userName);\n\n        /// \u003csummary\u003e\n        ///     Called when the upload process is changed\n        /// \u003c/summary\u003e\n        event EventHandler OnUploadProgessChanged;\n\n        /// \u003csummary\u003e\n        ///     Called when the upload process is finished\n        /// \u003c/summary\u003e\n        event EventHandler OnUploadSuccessfull;\n    }\n}\n```\n\nChange history\n--------------\n\nSee the [Changelog](https://github.com/SeppPenner/GoogleDriveExample/blob/master/Changelog.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepppenner%2Fgoogledriveexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsepppenner%2Fgoogledriveexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepppenner%2Fgoogledriveexample/lists"}