I have the following code in C# to make a graph call:
public async Task<IGraphServiceUsersCollectionPage> GetResponseAsync(string s)
{
var queryOptions = new List<QueryOption>()
{
new QueryOption("$count", "true"),
new QueryOption("$search", "")
};
return await graphServiceClient
.Users // or .Places
.Request(queryOptions)
.Header("ConsistencyLevel", "eventual")
.Filter("")
.Select("")
.OrderBy("")
.GetAsync();
});
}
some examples of string s are:
"https://graph.microsoft.com/v1.0/users"
"https://graph.microsoft.com/v1.0/places/microsoft.graph.room"
how do I parse this string so that I can get users or places:
and run _graphServiceClient.Users or await _graphServiceClient.Places accordingly?