I tried following this CloudRail sample.
Here is my code:
OneDrive client = new OneDrive(new LocalReceiver(8082), CLIENT_ID, CLIENT_SECRET, REDIRECT_URI, "");
//I'm not sure about the parameter 'state' so I left an empty string here
//The REDIRECT_URI is "https://login.live.com/oauth20_desktop.srf"
InputStream inputStream = new FileInputStream(fileToUpload);
client.upload(fileToUpload.getPath(), inputStream, fileToUpload.length(), false);
I got this error:
java.lang.ClassNotFoundException: com.mashape.unirest.request.HttpRequestWithBody
at the first line.
Please help.