graph

package
v0.0.0-...-fb06251 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMessage

func DeleteMessage(ctx context.Context, client *msgraphsdkgo.GraphServiceClient, messageID string) error

func GetMessageDetails

func GetMessageDetails(ctx context.Context, client *msgraphsdkgo.GraphServiceClient, messageID string) (models.Messageable, error)

func ListMessages

func ListMessages(ctx context.Context, client *msgraphsdkgo.GraphServiceClient, folderID, start, end string, limit int) ([]models.Messageable, error)

func MoveMessage

func MoveMessage(ctx context.Context, client *msgraphsdkgo.GraphServiceClient, messageID, destinationFolderID string) (models.Messageable, error)

func SearchMessages

func SearchMessages(ctx context.Context, client *msgraphsdkgo.GraphServiceClient, subject, fromAddress, fromName, folderID, start, end string, limit int) ([]models.Messageable, error)

func SendDraft

func SendDraft(ctx context.Context, client *msgraphsdkgo.GraphServiceClient, draftID string) error

Types

type DraftInfo

type DraftInfo struct {
	Subject, Body       string
	Recipients, CC, BCC []string // slice of email addresses
	Attachments         []string // slice of workspace file paths
}

Jump to

Keyboard shortcuts

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