Hello
As dropbox will stop supporting new long lived acces tokens in the future, i am trying to be prepared and want to implement the refreshacces function but i can't seem to get it to work. I contacted support but they told me that the vlc component does not support it but the fmx component does. So i tested it with the TMSFMXCloudDropBox component but it has the exact same problem as AdvDropBox.
This is the code i use
AdvDropBox1.PersistTokens.Key := '.\DROPBOXTOKENS.INI';
AdvDropBox1.PersistTokens.Location := CloudBase.plinifile;
AdvDropBox1.PersistTokens.Section := 'TOKENS';
AdvDropBox1.ExternalBrowser := true;
AdvDropBox1.app.Key := '3574r9q346i7hgo';
AdvDropBox1.app.secret := '38367s8t835bx1f';
AdvDropBox1.DoAuth (i have to auth once in the webpage that opens which works fine)
AdvDropBox1.Connect (works ok)
AdvDropBox1.TestTokens (is true)
AdvDropBox1.RefreshAccess (fails)
What i also noticed is that in the ini the refreshacces token is missing
[TOKENS]
ACCESS_TOKEN=vi+DqILsgL605s3KB(nj=AMQiyN0pFh4hJva4abGbZCjT\Nj}tZ5_TOvs046Cb7@s|O4jp6}dc10dlJfup\HfOl=6\VKT@FFuMb<KgWaT=tN=bi\0JCGJA88Qi6d0s<VktCq5k(oSUm<1D
AUTH_TOKEN=2A(Z]6RW_irDDDDDDDDG1iqMwtmAcu(g6RH3BpiNq<L
ACCESS_TOKEN_SECRET=
AUTH_TOKEN_SECRET=
REFRESH_TOKEN=
EXTRA_DATA=
Any help would be much appreciated