compile 'com.box:box-java-sdk:4.11.1'
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.