Hi,
Im trying to gain access via Microsoft Graph to a users mail. I have made a Graph Client before, but doing it through Aspose seems to be a challenge.
I would previously create a client like this:
public static GraphServiceClient CreateGraphClient()
{
var tenantId = tenantID;
var clientId = clientID;
var clientSecret = secret;
var options = new TokenCredentialOptions
{
AuthorityHost = AzureAuthorityHosts.AzurePublicCloud
};
var clientSecretCredential = new ClientSecretCredential(
tenantId, clientId, clientSecret, options);
var client = new GraphServiceClient(clientSecretCredential);
return client;
}
However, if i want a proper conversion to MapiMessage, i need to use the IGraphClient. I cant get this to work with on behalf. Any help is appreciated.