Versions in this module Expand all Collapse all v0 v0.2.1 Mar 18, 2026 v0.2.0 Mar 18, 2026 Changes in this version + type AppendSheetRowsRequest struct + Range string + ValueInputOption string + Values [][]interface{} type Client + func (c *Client) AppendSheetRows(fileID string, req AppendSheetRowsRequest) (*DriveOperationResult, error) + func (c *Client) CreateDriveFolder(req CreateFolderRequest) (*DriveOperationResult, error) + func (c *Client) DeleteDriveFile(fileID string) error + func (c *Client) EditDoc(fileID string, req EditDocRequest) (*DriveOperationResult, error) + func (c *Client) GetAllDriveFiles(params DriveListParams) (*DriveFilesResponse, error) + func (c *Client) GetDocContent(fileID, format string) (*DocContentResponse, error) + func (c *Client) GetDriveFile(fileID string) (*SingleDriveFileResponse, error) + func (c *Client) GetDriveFileLinks(fileID string) (*DriveFileLinkResponse, error) + func (c *Client) GetDriveFiles(params DriveListParams) (*DriveFilesResponse, error) + func (c *Client) GetDrivePermissions(fileID string) (*DrivePermissionsResponse, error) + func (c *Client) GetSheetMetadata(fileID string) (*SheetMetadataResponse, error) + func (c *Client) MoveDriveFile(fileID string, req MoveFileRequest) (*DriveOperationResult, error) + func (c *Client) PostRaw(path string, body []byte, contentType string) ([]byte, error) + func (c *Client) Put(path string, data interface{}) ([]byte, error) + func (c *Client) ReadSheetValues(fileID, rangeStr string) (*SheetValuesResponse, error) + func (c *Client) RenameDriveFile(fileID string, req RenameFileRequest) (*DriveOperationResult, error) + func (c *Client) ShareDriveFile(fileID string, req ShareFileRequest) (*DriveOperationResult, error) + func (c *Client) UploadDriveFile(fileName, mimeType, folderID, description string, body []byte) (*DriveOperationResult, error) + func (c *Client) WriteSheetValues(fileID string, req WriteSheetValuesRequest) (*DriveOperationResult, error) + type CreateFolderRequest struct + Description *string + Name string + ParentFolderID *string + type DocContentResponse struct + AccessInfo *string + PlainText *string + StructuredContent interface{} + Title *string + type DocEditOperation struct + Find *string + Index *int + MatchCase *bool + Replace *string + Text *string + Type string + type DriveFile struct + CreatedTime *string + Description *string + DownloadLink *string + ID string + IsFolder bool + Labels map[string]string + MimeType *string + ModifiedTime *string + Name *string + Owners []DriveUser + ParentFolderID *string + ParentFolderName *string + Provider string + SharedWith []DriveUser + Size *int64 + WebViewLink *string + type DriveFileLinkResponse struct + DownloadUrl *string + ErrorCode *string + ErrorMessage *string + ExportLinks map[string]string + FileName *string + IsGoogleWorkspaceFile bool + MimeType *string + Size *int64 + Success bool + WebViewLink *string + type DriveFilesResponse struct + AccessInfo *string + AuthWarnings []string + Files []DriveFile + HasMore bool + NextPageToken *string + type DriveListParams struct + FolderID string + Limit int + MimeType string + ModifiedAfter string + ModifiedBefore string + Name string + OrderBy string + PageToken string + Q string + SharedWithMe bool + TrashedOnly bool + type DriveOperationResult struct + ErrorCode *string + ErrorMessage *string + FileID *string + Success bool + type DrivePermission struct + DisplayName *string + Domain *string + EmailAddress *string + ID string + Role string + Type string + type DrivePermissionsResponse struct + AccessInfo *string + Permissions []DrivePermission + type DriveUser struct + DisplayName *string + Email string + Role *string + type EditDocRequest struct + Operations []DocEditOperation + type MoveFileRequest struct + DestinationFolderID string + type RenameFileRequest struct + NewName string + type ShareFileRequest struct + Domain *string + EmailAddress *string + Message *string + Role string + SendNotification *bool + Type string + type SheetMetadataResponse struct + AccessInfo *string + Sheets []SheetTabInfo + SpreadsheetID string + Title *string + type SheetTabInfo struct + ColumnCount int + RowCount int + SheetID int + Title string + type SheetValuesResponse struct + AccessInfo *string + Range string + Values [][]interface{} + type SingleDriveFileResponse struct + AccessInfo *string + File *DriveFile + type WriteSheetValuesRequest struct + Range string + ValueInputOption string + Values [][]interface{} v0.1.0 Feb 12, 2026 Changes in this version + func NewHTTPClient(apiKey string) *http.Client + type Attachment struct + ContentType string + ID string + IsInline bool + Name string + Size int64 + type Attendee struct + DisplayName string + Email string + Name string + Response string + ResponseStatus string + type AuthStatusResponse struct + CreatedAt time.Time + Email string + KeyID int + KeyTitle string + OperatorName string + type BusyPeriod struct + DurationMinutes int + EndUtc time.Time + StartUtc time.Time + type Calendar struct + ExternalID string + ID int64 + IsOperatorOwner bool + IsPrimary bool + LastSyncedAt time.Time + Name string + OwnerEmail string + Provider string + Timezone string + type CalendarsResponse struct + AccessInfo string + Data []Calendar + type Client struct + func NewClient(apiKey string) *Client + func (c *Client) CreateEvent(req CreateEventRequest) (*Event, error) + func (c *Client) Delete(path string) ([]byte, error) + func (c *Client) DeleteEmail(emailID string) error + func (c *Client) DeleteEvent(eventID string, notifyAttendees bool) (*DeleteEventResponse, error) + func (c *Client) ForwardEmail(emailID string, req ForwardEmailRequest) (*EmailActionResponse, error) + func (c *Client) Get(path string) ([]byte, error) + func (c *Client) GetAllEmails(params EmailParams) (*EmailsResponse, error) + func (c *Client) GetAllEvents(params EventParams) (*EventsResponse, error) + func (c *Client) GetAuthStatus() (*AuthStatusResponse, error) + func (c *Client) GetCalendars() (*CalendarsResponse, error) + func (c *Client) GetEmail(emailID string, includeBody bool) (*SingleEmailResponse, error) + func (c *Client) GetEmails(params EmailParams) (*EmailsResponse, error) + func (c *Client) GetEvent(eventID string) (*SingleEventResponse, error) + func (c *Client) GetEvents(params EventParams) (*EventsResponse, error) + func (c *Client) GetEventsByContact(params EventsByContactParams) (*EventsResponse, error) + func (c *Client) GetFreeBusy(params FreeBusyParams) (*FreeBusyResponse, error) + func (c *Client) GetThread(threadID string) (*ThreadResponse, error) + func (c *Client) Logout() error + func (c *Client) ModifyEmail(emailID string, req ModifyEmailRequest) error + func (c *Client) Patch(path string, data interface{}) ([]byte, error) + func (c *Client) Post(path string, data interface{}) ([]byte, error) + func (c *Client) ReplyToEmail(emailID string, req ReplyEmailRequest) (*EmailActionResponse, error) + func (c *Client) RespondToEvent(eventID, status string) (*Event, error) + func (c *Client) SendEmail(req SendEmailRequest) (*EmailActionResponse, error) + func (c *Client) UpdateEvent(eventID string, req UpdateEventRequest) (*Event, error) + func (c *Client) WithBaseURL(baseURL string) *Client + type CreateEventRequest struct + Attendees []string + CalendarID int64 + Description string + From time.Time + IsAllDay bool + Location string + Recurrence []string + Summary string + To time.Time + type DeleteEventResponse struct + Message string + Success bool + type Email struct + Attachments []Attachment + BCC []Participant + Body string + BodyPreview string + BodyType string + CC []Participant + From *Participant + HasAttachments bool + ID string + Importance string + IsRead bool + Labels []string + Provider string + ReceivedAt time.Time + SentAt time.Time + Subject string + ThreadID string + To []Participant + type EmailActionResponse struct + EmailID string + ErrorMessage string + Success bool + ThreadID string + type EmailParams struct + After time.Time + Before time.Time + From string + HasAttachment *bool + IncludeBody bool + Label string + Limit int + PageToken string + Query string + Subject string + To string + Unread *bool + type EmailsResponse struct + AccessInfo string + Emails []Email + HasMore bool + NextPageToken string + TotalCount int + type Event struct + AllDay bool + Attendees []Attendee + CalendarID int64 + Description string + DurationMinutes int + EndLocal string + EndUtc time.Time + ID string + IsAllDay bool + IsRecurringEvent bool + JoinUrl string + Labels []string + Location string + Organizer string + StartLocal string + StartUtc time.Time + Status string + Summary string + Title string + type EventParams struct + Attendees string + CalendarID int64 + From time.Time + IncludeCancelled bool + Limit int + Offset int + Query string + To time.Time + type EventsByContactParams struct + Email string + Limit int + Name string + Offset int + type EventsResponse struct + AccessInfo string + CurrentUserCalendarEmail string + Events []Event + Meta *Meta + RequestID string + type ForwardEmailRequest struct + Body string + BodyType string + CC []Participant + To []Participant + type FreeBusyCalendar struct + Busy []BusyPeriod + CalendarID int64 + CalendarName string + type FreeBusyParams struct + Calendars string + From time.Time + To time.Time + type FreeBusyResponse struct + AccessInfo string + Calendars []FreeBusyCalendar + type Meta struct + Count int + ExecutionMs int + From time.Time + HasMore bool + Offset int + Timestamp time.Time + To time.Time + TotalCount int + Truncated bool + type ModifyEmailRequest struct + AddLabels []string + MarkAsRead *bool + RemoveLabels []string + type Participant struct + Email string + Name string + type ReplyEmailRequest struct + Body string + BodyType string + ReplyAll bool + type SendEmailRequest struct + BCC []Participant + Body string + BodyType string + CC []Participant + ConnectionID *int64 + Importance string + Subject string + To []Participant + type SingleEmailResponse struct + AccessInfo string + Email Email + type SingleEventResponse struct + AccessInfo string + CurrentUserCalendarEmail string + Event Event + type ThreadResponse struct + AccessInfo string + ID string + LastMessageAt time.Time + MessageCount int + Messages []Email + Participants []Participant + Provider string + Subject string + type Transport struct + APIKey string + Base http.RoundTripper + func NewTransport(apiKey string) *Transport + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) + type UpdateEventRequest struct + AddAttendees []string + Description string + From *time.Time + IsAllDay *bool + Location string + RemoveAttendees []string + SendNotifications *bool + Summary string + To *time.Time