我正在玩O365 iOS Microsoft Graph SDK。我正在搜索一个驱动器'xxx',当我使用nextRequest项目获取搜索结果的下一页时,我得到以下错误
2017-05-30 16:24:30.413 O365-iOS-Microsoft-Graph-SDK [36063:3959258]图形SDK错误:数据任务出错:错误域= com.microsoft.graph.errors代码= 400“错误的请求“UserInfo = {error = invalidRequest:无效的查询选项,NSLocalizedDescription =错误的请求} 2017-05-30 16:24:30.414 O365-iOS-Microsoft-Graph-SDK [36063:3959258]图形SDK错误:由请求引起{URL:https://graph.microsoft.com/v1.0/me/drive/items/root/microsoft.graph.search(q='。xxx')?$ skiptoken = MjAx( q = null)}
这是代码
MSGraphDriveItemSearchRequest *itemSearchRequest = [[[[[self.graphClient me] drive] items:@"root"] searchWithQ:@".xxx"] request];
[itemSearchRequest executeWithCompletion:
^(MSCollection *response, MSGraphDriveItemSearchRequest *nextRequest, NSError *error) {
if(!error) {
[nextRequest executeWithCompletion:
^(MSCollection *response2, MSGraphDriveItemSearchRequest *nextRequest2, NSError *error2) {
if(!error2) {
}
}];
}
}];
如果我使用图形资源管理器并使用(https://graph.microsoft.com/v1.0/me/drive/items/root/microsoft.graph.search(q='.xxx')?$skiptoken= MjAx)作为查询,我得到搜索结果的“下一页”,我想知道为什么它不能处理我粘贴的代码。