gmailauth

package module
v0.0.0-...-13aaed8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthUser

func AuthUser(file string, scope ScopeType) (*gmail.Service, error)

Types

type ScopeType

type ScopeType string
const (
	READONLY                        ScopeType = gmail.GmailReadonlyScope
	ADDONS_CURRENT_ACTION_COMPOSE   ScopeType = gmail.GmailAddonsCurrentActionComposeScope
	ADDONS_CURRENT_MESSAGE_ACTION   ScopeType = gmail.GmailAddonsCurrentMessageActionScope
	ADDONS_CURRENT_MESSAGE_METADATA ScopeType = gmail.GmailAddonsCurrentMessageMetadataScope
	ADDONS_CURRENT_MESSAGE_READONLY ScopeType = gmail.GmailAddonsCurrentMessageReadonlyScope
	COMPOSE                         ScopeType = gmail.GmailComposeScope
	INSERT                          ScopeType = gmail.GmailInsertScope
	LABELS                          ScopeType = gmail.GmailLabelsScope
	METADATA                        ScopeType = gmail.GmailMetadataScope
	MODIFY                          ScopeType = gmail.GmailModifyScope
	SEND                            ScopeType = gmail.GmailSendScope
	SETTINGS_BASIC                  ScopeType = gmail.GmailSettingsBasicScope
	SETTINGS_SHARING                ScopeType = gmail.GmailSettingsSharingScope
	MAIL_GOOGLE_COM                 ScopeType = gmail.MailGoogleComScope
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL