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
Click to show internal directories.
Click to hide internal directories.