Contents Hide
local.result = Dropbox.Initialise("...accesstokenhere...");
IF local.result <> 0
{
Form.MessageBox("Error", "Could not initialise Dropbox object", 0)
EXIT
}
IF(System.GetOS() == OS_ANDROID)
{
local.localFile = System.GetProjectPath() & "/userguide.pdf";
local.result = Dropbox.Download("/userguide.pdf", local.localFile);
}
ELSE
{
local.result = Dropbox.Download("/userguide.pdf", "userguide.pdf");
}
local.result = Dropbox.Initialise("...accesstokenhere...");
IF local.result <> 0
{
Form.MessageBox("Error", "Could not initialise Dropbox object", 0)
EXIT
}
IF(System.GetOS() == OS_ANDROID)
{
local.localFile = System.GetProjectPath() & "/image1.jpg";
local.result = Dropbox.Upload(local.localFile, "/image1.jpg", true);
}
ELSE
{
local.result = Dropbox.Upload("image1.jpg", "/image1.jpg", true);
}