Skip to content

8981/DriveDocUploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 DriveDocs / gdocify

   ____                 ____              _            
  |  _ \ __ _ ___ ___  |  _ \ ___  ___ __| | ___ _ __ 
  | | | / _` / __/ __| | |_) / _ \/ __/ _` |/ _ \ '__|
  | |_| | (_| \__ \__ \ |  _ <  __/ (_| (_| |  __/ |   
  |____/ \__,_|___/___/ |_| \_\___|\___\__,_|\___|_|

.NET Platform License Status

DriveDocs / gdocify — an open-source C# SDK and CLI tool for:

  • uploading local files to Google Drive,
  • converting .docx to Google Docs,
  • assigning user permissions,
  • generating shareable links.

🚀 Features

  • OAuth 2.0 authentication
  • Upload .docx → Google Docs
  • Specify target folder on Google Drive
  • Assign editor permissions to specific users
  • Return a view/edit link
  • Use as a library in any project or via CLI

⚙ Installation

git clone https://github.com/8981/DriveDocs.git
cd DriveDocs
dotnet restore

Install required packages for the library:

dotnet add DriveDocs.Client package Google.Apis.Drive.v3 dotnet add DriveDocs.Client package Google.Apis.Auth

🔐 Setup

  • Create a project in Google Cloud Console

  • Enable the Google Drive API

  • Create an OAuth Client ID (Desktop App)

  • Download credentials.json and place it in the project root

💻 CLI Usage

dotnet run --project DriveDocs.Cli -- "C:\path\file.docx"

Example output: https://docs.google.com/document/d/1XxXxXxXxXx/edit

💻 SDK / Library Usage

using DriveDocs.Client.Services;

var uploader = new DriveUploader();
var link = await uploader.UploadDocxAsync(
    @"C:\Docs\Resume.docx",
    "credentials.json",
    "your-folder-id",
    "example@email.com");

Console.WriteLine(link);

📊 UploadDocxAsync Parameters

image

Token Folder

On first run, a browser window will open for OAuth authentication The token will be saved at: %APPDATA%\DriveDocsToken To re-authenticate, delete this folder

⚠ Errors & Solutions image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages