From 0ed394555c124a8f1b8bf844cda020abf3cf7478 Mon Sep 17 00:00:00 2001 From: mwoda <84077698+mwwoda@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:56:15 +0100 Subject: [PATCH] docs: add docs for marker-based `GetFolderItems` --- docs/folders.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/folders.md b/docs/folders.md index ee7223ae2..af96241d5 100644 --- a/docs/folders.md +++ b/docs/folders.md @@ -26,13 +26,20 @@ Get a Folder's Items -------------------- Folder items can be retrieved by calling the -`FoldersManager.GetFolderItemsAsync(string id, int limit, int offset = 0, IEnumerable fields = null, bool autoPaginate=false)` +`FoldersManager.GetFolderItemsMarkerBasedAsync(string id, int limit string marker = null, IEnumerable fields = null, bool autoPaginate = false, string sort = null, BoxSortDirection? direction = null, string sharedLink = null, string sharedLinkPassword = null)` method. Use the `fields` option to specify the desired fields. Requesting information for only the fields you need can improve performance by reducing the size of the network response. +Following method supports marker-based pagination. ```c# -BoxCollection folderItems = await client.FoldersManager.GetFolderItemsAsync("11111", 100); +BoxCollection folderItems = await client.FoldersManager.GetFolderItemsMarkerBasedAsync("11111", 100); +``` + +Alternatively you can use method with offset-based pagination. + +```c# +BoxCollection folderItems = await client.FoldersManager.GetFolderItemsAsync("11111", 100, offset: 10); ``` Get a Folder's Information