Instructions on how to acquire the client credentials to authenticate and perform REST API operations against sharepoint online.
Includes an example Java proof-of-concept implementation and a unit test driver that can upload and download files.
While just a proof of concept, it does work and pull requests to add additional out of the box API are welcomed.
Please start with acquiring Credentials and then Setup the unit test to use them.