Example 6: Enumerate files in a workspace |
This example will request a list of all documents in a Workspace that the user has access rights to. The server will return a list of documents or folders, which can then be iterated over.
Resource.Workspaces workspaces = apiSession.GetWorkspacesResource(); // Create an object to specify the details of what documents to list and how // they are returned. A few options are shown here. ListDocumentsVdrJson selectionJson = new ListDocumentsVdrJson { OrderAscending = false, FolderPath = "/" }; // Call the list method PagingItemListJson<BaseJson> response = workspaces.ListDocumentsV30(roomId, selectionJson);