shared

package
v0.0.0-...-e284d0c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGraphClient

func NewGraphClient() (*msgraphsdk.GraphServiceClient, error)

NewGraphClient initializes a new GraphClient and returns its instance https://learn.microsoft.com/en-us/graph/tutorials/go-app-only?tabs=aad

Types

type GraphApiClient

type GraphApiClient struct {
	BaseURL      string
	HTTPClient   *http.Client
	ClientID     string
	ClientSecret string
	TenantID     string
}

func NewGraphApiClient

func NewGraphApiClient(clientID string, clientSecret string, tenantID string) *GraphApiClient

func (*GraphApiClient) GetAccessToken

func (client *GraphApiClient) GetAccessToken() (string, error)

type GraphClient

type GraphClient struct {
	// contains filtered or unexported fields
}

func (*GraphClient) GetClient

func (g *GraphClient) GetClient() *msgraphsdk.GraphServiceClient

GetClient exposes the GraphServiceClient for external use

Jump to

Keyboard shortcuts

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