1
Search APIを使用してファイルを取得していました。特定の種類のファイルを取得して子供APIを取得するのは時間がかかり、再帰的にフォルダをクロールする必要があります。OneDrive iOS SDK - 検索APIクエリパラメータにOR演算子がありませんか?
私はquery = 'abc OR xyz'などのクエリに使用できるものは、「abc」または「xyz」を持つファイル名を返します。私は現在、これは今のところ不可能です。
現在のコード
NSString *itemId = @"root";
ODItemSearchRequest *req = [[[self.client.drive items:itemId] searchWithQ:@"abc"] request];
[req executeWithCompletion:^(ODCollection *response, ODItemSearchRequest *nextRequest, NSError *error) {
// returns files containing filename, metadata, and file content 'abc'
}];
あなたは、クエリ文字列を指定した場合私はAPIから希望する'ABC' OR 'xyzの'
ODItemSearchRequest *req = [[[self.client.drive items:itemId] searchWithQ:@"'abc' OR 'xyz'"] request];
[req executeWithCompletion:^(ODCollection *response, ODItemSearchRequest *nextRequest, NSError *error) {
// returns files containing filename, metadata, and file content 'abc' Or 'xyz'
}];
"abc%20xyz"というクエリを設定しようとしましたが、結果が間違っています。私は 'abc'としてクエリを試したとき、それは私が 'abc%20xyz'を使用したときよりも多くの結果をもたらしました –