I know that the query: https://graph.microsoft.com/v1.0/me/messages Corresponds to: GraphClient.Me.Messages.Request().GetAsync()
I am trying to replicate the following requests in Microsoft Graph Client SDK :
Get All Categories https://graph.microsoft.com/beta/me/outlook/masterCategories Corresponding Graph client query: ??
Get All messages that contain certain words in their subject The link will be similar to this https://graph.microsoft.com/v1.0/me/messages?$search="hello world" Corresponding Graph Client : ??
Update each of these messages with a category ?
The documentation only gives 2 examples, where could i find a list of examples/reading material on this?
The SDK is generated for the production endpoint (v1.0), so you will have to make a custom request for beta APIs
List<QueryOption> options = new List<QueryOption>
{
new QueryOption("$search", "hello world")
};
var filteredMessages = await
graphClient.Me.Messages.Request(options).GetAsync();
This also requires using custom requests since this is beta functionality.
We appreciate your feedback about our docs and how to use the SDK. We have some additional reference in the repo and are continuing to examine options for improving our SDK docs.