This is painful...
The Java examples rely on an auth file created via the Authorization example. Which in turn requires building this code, and running a web browser...
String authorizeUrl = webAuth.authorize(webAuthRequest);
System.out.println("1. Go to " + authorizeUrl);
System.out.println("2. Click \"Allow\" (you might have to log in first).");
System.out.println("3. Copy the authorization code.");
System.out.print("Enter the authorization code here: ");
Now, I can get an auth code for me from DropBox directly, but the DbxAuthInfo structure also requires a non-NULL host. And has no documentation about that. This example doesn't have it either; the user and secret are submitted and the auth code retrieved.
From https://www.dropbox.com/developers/apps/info/..., how do I get the host?