Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 搜索和筛选onedrive请求_Azure_Filter_Microsoft Graph Api_Onedrive - Fatal编程技术网

Azure 搜索和筛选onedrive请求

Azure 搜索和筛选onedrive请求,azure,filter,microsoft-graph-api,onedrive,Azure,Filter,Microsoft Graph Api,Onedrive,我试图只搜索具有特定名称的文件夹,因此我使用搜索和筛选参数。根据搜索结果,查询应如下所示: GET/drive/root/search(q='vacation') 但若我想添加过滤器,那个么根据,我应该添加filter=folder ne null,但问题是如何将其添加到原始字符串中?在筛选文档中有一个请求示例 GET/drive/root/search?q=vacation&filter=image%20ne%20null%20and%20file%20ne%20null 它使用不同的语法,然

我试图只搜索具有特定名称的文件夹,因此我使用搜索和筛选参数。根据搜索结果,查询应如下所示:

GET/drive/root/search(q='vacation')

但若我想添加过滤器,那个么根据,我应该添加
filter=folder ne null
,但问题是如何将其添加到原始字符串中?在筛选文档中有一个请求示例

GET/drive/root/search?q=vacation&filter=image%20ne%20null%20and%20file%20ne%20null

它使用不同的语法,然后是搜索文档中的示例,如果我尝试将其更改为我的用法,就像这样


GET/drive/root/search?q=folderName&filter=folderne null
然后我得到400个错误的请求响应。那个么,我怎样才能搜索那个些只属于文件夹的特定项目呢?谢谢。

我希望我能发表评论,你所需要做的就是对你的参数进行URL编码,从搜索文档中引用

注意:为了可读性,示例省略了正确的URL编码。实际筛选器语法用法必须是URL编码的

对于
filter=文件夹ne null

这是您应该做的附加到url

filter%3Dfolder+ne+null

您是在为消费者还是企业打电话反对OneDrive?