Is there some other value you need (these don't look correct, but they are similar to those that are seen in FMXCloudBase and they work so I assume they are as they should be).
I assume there is some way to convert these values to something that is (English) readable, can you please advise how?
If I build your CloudStorage DEMO the DoConnect for TAdvDropbox works, ie. the error described does not occur (the apply and app secret are the same for both).
I have copied your demo unit to my Test program simply as another form.
If I then run the cloud storage demo as a second form in my test app, the DoConnect fails in the same way as my DoConnect.
So clearly there is something in my application that is corrupting or sending the wrong headers.
Again, my question is how can I render the contents of TCoreCloudHeaders into something meaningful so that I (and you) can get a feel as tho what is being passed?
is there some sort of with TCoreCloudHeaders as..... type statement?
And I found the log in the Documents folder, but it provides NO useful information. Twice I tried to disconnect from my application and once from your test form. The only thing logged (in detail mode) was this:
After several days of stuffing around and rewriting and rebuilding code, turns out it was something stupidly simple.
The INI file with the credentials (Auth token etc), was one that was there from the FMX version. Instead of the software just saying these credentials are screwed, I got this weird Headers error which caused all of the grief.
Deleting the INI File and recreating it, and in turn regenerating the credentials solved the problem.