Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

How to fetch next page with searchRequest? #141

Closed
mcsong opened this issue Jun 15, 2018 · 1 comment
Closed

How to fetch next page with searchRequest? #141

mcsong opened this issue Jun 15, 2018 · 1 comment

Comments

@mcsong
Copy link

mcsong commented Jun 15, 2018

Hello,
I can't find how to fetch next page with searhRequest?

I did call first like this.

mDriveSearchCollectionPage = mGraphServiceClient.getMe().getDrive()
//.buildRequest(searchOptions).expand("thumbnails").get();
.getSearch(queryValue).buildRequest()
.select("id, folder, file, name, size, lastModifiedDateTime, createdDateTime, webUrl")
.expand("thumbnails")
.top(500)
.get();

And, I try to use this code for fetching next page.

while (items != null) {

			if (mDriveSearchCollectionPage.getNextPage() == null)
				break;

			items = mDriveSearchCollectionPage
					.getNextPage()
					.buildRequest()
					.get()
					.getCurrentPage();
		}

But, it doesn't not works.
If someone know how to fetch next page with SearchRequest, please help me.

Thank you,

@baywet
Copy link
Member

baywet commented Oct 2, 2024

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #172 for more information

@baywet baywet closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants