graph

package
v0.0.0-...-8c7b6e0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWorksheetColumn

func AddWorksheetColumn(ctx context.Context, workbookID, worksheetID, columnID string, contents []string) error

func AddWorksheetRow

func AddWorksheetRow(ctx context.Context, c *msgraphsdkgo.GraphServiceClient, workbookID, worksheetID string, contents []string) error

func CreateWorksheet

func CreateWorksheet(ctx context.Context, c *msgraphsdkgo.GraphServiceClient, workbookID, name string) (string, error)

func GetWorksheetColumnHeaders

func GetWorksheetColumnHeaders(ctx context.Context, c *msgraphsdkgo.GraphServiceClient, workbookID, worksheetID string) ([][]any, models.WorkbookRangeable, error)

func GetWorksheetData

func GetWorksheetData(ctx context.Context, c *msgraphsdkgo.GraphServiceClient, workbookID, worksheetID string) ([][]any, models.WorkbookRangeable, error)

Types

type HTTPErrorBody

type HTTPErrorBody struct {
	Error struct {
		Code       string `json:"code,omitempty"`
		Message    string `json:"message,omitempty"`
		InnerError struct {
			Code            string `json:"code,omitempty"`
			Message         string `json:"message,omitempty"`
			Date            string `json:"date,omitempty"`
			RequestID       string `json:"request-id,omitempty"`
			ClientRequestID string `json:"client-request-id,omitempty"`
		} `json:"innerError,omitempty"`
	} `json:"error,omitempty"`
}

type Table

type Table struct {
	ID, Name string
}

func GetWorksheetTables

func GetWorksheetTables(ctx context.Context, c *msgraphsdkgo.GraphServiceClient, workbookID, worksheetID string) ([]Table, error)

type UpdateBody

type UpdateBody struct {
	Values   [][]any `json:"values,omitempty"`
	Formulas [][]any `json:"formulas,omitempty"`
}

func (*UpdateBody) AppendColumnCellToFormulas

func (u *UpdateBody) AppendColumnCellToFormulas(newColumnCell []any)

func (*UpdateBody) AppendColumnCellToValues

func (u *UpdateBody) AppendColumnCellToValues(newColumnCell []any)

func (*UpdateBody) AppendRowToFormulas

func (u *UpdateBody) AppendRowToFormulas(newRow []any)

func (*UpdateBody) AppendRowToValues

func (u *UpdateBody) AppendRowToValues(newRow []any)

type WorkbookInfo

type WorkbookInfo struct {
	ID, Name string
}

type WorksheetInfo

type WorksheetInfo struct {
	ID, Name, WorkbookID string
}

func ListWorksheetsInWorkbook

func ListWorksheetsInWorkbook(ctx context.Context, c *msgraphsdkgo.GraphServiceClient, workbookID string) ([]WorksheetInfo, error)

Jump to

Keyboard shortcuts

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