Microsoft Graph Client SDK与请求JSON [英] Microsoft Graph Client SDK vs. Requesting JSONs

查看:127
本文介绍了Microsoft Graph Client SDK与请求JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道该查询: https://graph.microsoft.com/v1.0/me/messages 对应于: GraphClient.Me.Messages.Request().GetAsync()

I know that the query: https://graph.microsoft.com/v1.0/me/messages Corresponds to: GraphClient.Me.Messages.Request().GetAsync()

我正在尝试在Microsoft Graph Client SDK中复制以下请求:

I am trying to replicate the following requests in Microsoft Graph Client SDK :

  1. 获取所有类别 https://graph.microsoft.com/beta/me/outlook/masterCategories 对应的Graph客户端查询:??

  1. Get All Categories https://graph.microsoft.com/beta/me/outlook/masterCategories Corresponding Graph client query: ??

获取主题中包含某些单词的所有消息 链接将与此类似 https://graph.microsoft.com/v1.0/me/messages?$ search ="hello world" 对应的图形客户端:??

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 ?

文档仅提供了2个示例,我在哪里可以找到示例列表/有关此内容的阅读材料?

The documentation only gives 2 examples, where could i find a list of examples/reading material on this?

推荐答案

  1. 为生产终结点(v1.0)生成了SDK,因此您必须制作 List<QueryOption> options = new List<QueryOption> { new QueryOption("$search", "hello world") }; var filteredMessages = await graphClient.Me.Messages.Request(options).GetAsync();

    List<QueryOption> options = new List<QueryOption> { new QueryOption("$search", "hello world") }; var filteredMessages = await graphClient.Me.Messages.Request(options).GetAsync();

    由于这是beta功能,因此还需要使用自定义请求.

    This also requires using custom requests since this is beta functionality.

    感谢您对我们的文档以及如何使用SDK的反馈.我们在仓库中有一些其他参考,并且正在继续检查用于改进我们的SDK文档的选项.

    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.

    这篇关于Microsoft Graph Client SDK与请求JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆