Skip to content

feat(drive): add changes tracking for sync and automation (Changes API v3) #335

@dl-alexandre

Description

@dl-alexandre

Summary

Add support for Google Drive Changes API v3 to enable sync tools, incremental backups, and real-time change monitoring.

Current State

gog drive supports file operations (ls, search, upload, download, etc.) but has no mechanism to track changes over time. Users must poll or maintain external state to detect modifications.

Proposed Commands

gog drive changes start-token                    # Get starting page token
gog drive changes list --token <token>           # List changes since token
gog drive changes list --token <token> --max 50  # With pagination
gog drive changes watch --token <token> --webhook-url <url>  # Set up webhook
gog drive changes stop <channelId> <resourceId>  # Stop webhook

Use Cases

  • Build sync tools that mirror Drive to local storage
  • Incremental backup systems that only fetch changed files
  • Automation workflows triggered by file changes
  • Real-time monitoring for compliance/security

API Notes

Related

None — this is a new capability.


I've implemented this in another Drive CLI and can share implementation details if helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions