graph

package
v0.0.0-...-f7c8625 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequest = errors.New("failed to request")
)

Functions

func Login

func Login(refreshToken string, auth Authform) (string, string)

Login performing login action using refresh token and return access, refresh token

Types

type Authform

type Authform struct {
	RedirectPort string // redirection port
	RedirectPath string
	Scope        string
	Tenant       string
	ClientId     string
	ClientSecret string
}

type BaseItem

type BaseItem struct {
	Id                   string      `json:"id"`
	CreatedBy            string      `json:"createdBy"`
	CreatedDateTime      string      `json:"createdDataTime"`
	Etag                 string      `json:"eTag"`
	LastModifiedBy       IdentitySet `json:"lastModifiedBy"`
	LastModifiedDateTime string      `json:"lastModifiedDateTime"`
	Name                 string      `json:"name"`
}

type Identity

type Identity struct {
	DisplayName string `json:"displayName"` // display name of identity
	Id          string `json:"id"`          // unique identifier for the identity
}

type IdentitySet

type IdentitySet struct {
	Application Identity `json:"application"`
	Device      Identity `json:"device"`
	User        Identity `json:"user"`
}

IdentitySet represents a key collection of identity resources

type Items

type Items struct {
	// inherited from baseItem
	Name           string `json:"name"`
	ID             string `json:"id"`
	CreateDateTime string `json:"createdDateTime"`
	ETag           string `json:"eTag"`
	DownloadURL    string `json:"@microsoft.graph.downloadUrl"`
}

func List

func List(accessToken string) ([]Items, error)

Jump to

Keyboard shortcuts

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