Google Drive SDK API Explorer |使用下一页链接获得空结果。

时间:2017-05-25 10:02:43

标签: google-drive-api google-admin-sdk

我正在使用包含大约5K文件的Google帐户来浏览Google云端硬盘SDK API Explorer。我的下一页链接显示空白结果。

为了克服这个问题,我必须连续调用google drive API,直到我没有结果,这些调用在某些情况下高达50到80,这使我的服务器响应变慢。

怎么过来?我错过了什么吗?

以下是我的查询 -

(( fullText contains 'NEW_CT_3527 OR NEW_CT_3584'  or title contains '"plain"' ) and trashed=false)

我从驱动API获得以下响应 -

{
 "kind": "drive#fileList",
 "etag": "\"LUxk1DXE_0fd4yeJDIgpecr5uPA/GmDYv3ms0p6y6lZKIj1ujNHSEnw\"",
 "selfLink": "https://www.googleapis.com/drive/v2/files?pageToken=EAIapgELEgBSnQEKiwEKaf8Av9T5Hhgk0sD__vj0BN__stMyQ29zbW8udXNlcigwMDAwMDA0MDhlNDUyMmE4VSkuZGlyX2VudHJ5KDI3NzI2NDgwMjQ3MlwuNDdcLjM4NjQwMzU3MjM1NTpHMzlZOHo5SGhqcykAARBkIWVuyUIw2MhrUABaCwlr4a9wfPyDuRACYKzdkPsGIAEyBgi41prJBfCElXwBDEAAIgsJqCJFjkAAAAAgBg&q=(+fullText+contains+'NEW_CT_3527'++or+title+contains+'%22plain%22'+)+and+trashed%3Dfalse",
 "nextPageToken": "EAIapwELEgBSngEKjAEKaf8Av9T3hCoz5jr__vj0BID_ss_OQ29zbW8udXNlcigwMDAwMDA0MDhlNDUyMmE4VSkuZGlyX2VudHJ5KDI3NzI2NDgwMjQ3MlwuNDdcLjM4NjQwMzU3MjM1NTpTdm15MDN0U29JWSkAARDIASFlbslCMNjIa1AAWgsJa-GvcHz8g7kQAmCs3ZD7BiABMgYIuNaayQXwhJV8AQxAACILCagiRY5AAAAAIAY",
 "nextLink": "https://www.googleapis.com/drive/v2/files?pageToken=EAIapwELEgBSngEKjAEKaf8Av9T3hCoz5jr__vj0BID_ss_OQ29zbW8udXNlcigwMDAwMDA0MDhlNDUyMmE4VSkuZGlyX2VudHJ5KDI3NzI2NDgwMjQ3MlwuNDdcLjM4NjQwMzU3MjM1NTpTdm15MDN0U29JWSkAARDIASFlbslCMNjIa1AAWgsJa-GvcHz8g7kQAmCs3ZD7BiABMgYIuNaayQXwhJV8AQxAACILCagiRY5AAAAAIAY&q=(+fullText+contains+'NEW_CT_3527'++or+title+contains+'%22plain%22'+)+and+trashed%3Dfalse",
 "incompleteSearch": false,
 "items": []
}

0 个答案:

没有答案