adapting the SkyDriveAPI.php to use with TroveBox.