Language

TeamsTurnContext.GetAppGraphClient(String) Method

Definition

Creates a Microsoft.Graph.GraphServiceClient authenticated with an app-only (application) token, using the token connection resolved for the current turn.

public Microsoft.Graph.GraphServiceClient GetAppGraphClient(string graphBaseUrl = "https://graph.microsoft.com/v1.0");
abstract member GetAppGraphClient : string -> Microsoft.Graph.GraphServiceClient
override this.GetAppGraphClient : string -> Microsoft.Graph.GraphServiceClient
Public Function GetAppGraphClient (Optional graphBaseUrl As String = "https://graph.microsoft.com/v1.0") As GraphServiceClient

Parameters

graphBaseUrl
String

The base URL for the Microsoft Graph API. Defaults to "https://graph.microsoft.com/v1.0".

Returns

A Microsoft.Graph.GraphServiceClient authenticated with an app-only token.

Implements

Applies to