The following uploads my file to the specified path in dropbox:
DbxEntry.File uploadedFile = client.uploadFile("/" + id + "/name" + ".png",
DbxWriteMode.add(), tile.length(), inputStream);
System.out.println("Uploaded: " + uploadedFile.toString());
However how can i retrieve the Public Share URL after it is uploaded? I can't find any documentation.
Found the right API method:
DbxClient = new DbxClient(config, accessToken);
client.createShareableUrl(path)
Couldn't get any easier...