SharePoint is a document management and collaboration tool developed by Microsoft used as a Content Management System.
- Create a Sharepoint Add-in.
- Retrieve the Client ID, Client Secret, Domain and Principal for your Add-In.
Set up Apache Maven to authenticate to GitHub Package Registry by editing your ~/.m2/settings.xml. For more information, see "Authenticating to GitHub Package Registry".
<dependencies>
<dependency>
<groupId>com.philipbui.sharepoint</groupId>
<artifactId>sharepoint-client</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
Set up Gradle to authenticate to GitHub Package Registry by editing your build.gradle or build.gradle.kts file. For more information, see "Authenticating to GitHub Package Registry".
dependencies {
implementation("com.philipbui.sharepoint:sharepoint-client:1.0.0")
}
SharepointClient sharepointClient = new SharepointClient();
String accessToken = sharepointClient.getAccessToken(clientID, clientSecret, realm, principal, targetHost);
List<ExampleListItem> list = sharepointClient.getListItemsComplete(host, site, list, accessToken, ExampleListItem.class);
- Get List Items by List Name
- Get All List Items by List Name
Sharepoint Client is available under the MIT license. See LICENSE for details.