I am trying to build a Java application which will use Microsoft Graph API in order to view files on SharePoint. Can anyone suggest any github urls or demo projects or a third party libraries available on maven
.
I am trying to build a Java application which will use Microsoft Graph API in order to view files on SharePoint. Can anyone suggest any github urls or demo projects or a third party libraries available on maven
.
You can start building your java application by following the doc - https://github.com/microsoftgraph/msgraph-sdk-java
You can write below code to get files on SharePoint
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
LinkedList<Option> requestOptions = new LinkedList<Option>();
requestOptions.add(new QueryOption("expand", "fields"));
ListItem listItem = graphClient.sites("{site-id}").lists("{list-id}").items("{item-id}")
.buildRequest( requestOptions )
.get();