use of com.microsoft.graph.requests.DriveItemCollectionPage in project msgraph-beta-sdk-java by microsoftgraph.
the class UserTests method meDriveItems.
@Test
public void meDriveItems() {
// GET me/drive/items('<key>')
final DriveItemCollectionPage driveItemCollectionPage = graphServiceClient.me().drive().items().buildRequest().get();
assertNotNull(driveItemCollectionPage);
if (driveItemCollectionPage.getCurrentPage().size() > 0) {
DriveItem item = graphServiceClient.me().drive().items(driveItemCollectionPage.getCurrentPage().get(0).id).buildRequest().get();
assertNotNull(item);
}
}
Aggregations