Box Java SDK

Download v2.4.0 Clone it on GitHub
Gradle
Maven
JAR
compile 'com.box:box-java-sdk:2.4.0'

Quickstart

Getting started with the SDK is simple. After creating a Box developer account, simply generate a new developer token and paste it into the example below. Running it will print out a list of the files and folders in your Box account.

BoxAPIConnection api = new BoxAPIConnection("your-developer-token");
BoxFolder rootFolder = BoxFolder.getRootFolder(api);
for (BoxItem.Info itemInfo : rootFolder) {
    System.out.format("[%s] %s\n", itemInfo.getID(), itemInfo.getName());
}

Check out the readme and sample project for more information on how to get started.

Documentation

Javadocs Authentication Files Folders Comments Collaborations Events Search Users Groups Tasks