Just did that and it worked, here's the log - however see below this logfile though,
and it looks like it is trying to authorise with OAUTH1 after it gets the token. I have installed and re-installed the VCL Cloud Pack and auto/manually built it:
20171006T120213:HTTPS POST RES:200
20171006T120214:HTTPS POST RES:200
20171006T120214:GOT ACCESS TOKENS: dLi0f59i4z4AAAAAAAApdjDl5yQ7ux80i8Zt2k1QOOR6AbkXqddT4nQVaUiyjbmv /
20171006T120542:HTTPS POST RES:200
20171006T120542:HTTPS POST RESULT:{"account_id": "dbid:AAD4_bi4MP1qQDCvIciNh3x-9sa3bciOtRA", "name": {"given_name": "Kevin", "surname": "Black", "familiar_name": "Kevin", "display_name": "Kevin Black", "abbreviated_name": "KB"}, "email": "
kevin.black@orexresearch.com", "email_verified": true, "profile_photo_url": "
https://dl-web.dropbox.com/account_photo/get/dbid%3AAAD4_bi4MP1qQDCvIciNh3x-9sa3bciOtRA?size=128x128&vers=1471750892690", "disabled": false, "country": "AU", "locale": "en", "referral_link": "
Dropbox - You're invited to join Dropbox!", "is_paired": false, "account_type": {".tag": "pro"}}
20171006T120543:HTTPS POST RES:200
20171006T120543:HTTPS POST RESULT:{"entries": [{".tag": "folder", "name": "Public", "path_lower": "/public", "path_display": "/Public", "id": "id:uMctvDFrpJwAAAAAAAAJFg"}, {".tag": "folder", "name": "WA Police", "path_lower": "/wa police", "path_display": "/WA Police", "id": "id:uMctvDFrpJwAAAAAAAAJFQ", "shared_folder_id": "161128874", "sharing_info": {"read_only": false, "shared_folder_id": "161128874"}}, {".tag": "folder", "name": "Kevin Black", "path_lower": "/kevin black", "path_display": "/Kevin Black", "id": "id:uMctvDFrpJwAAAAAAAAJEw", "shared_folder_id": "95136969", "sharing_info": {"read_only": false, "shared_folder_id": "95136969"}}, {".tag": "folder", "name": "Orex Conf Admin", "path_lower": "/orex conf admin", "path_display": "/Orex Conf Admin", "id": "id:uMctvDFrpJwAAAAAAAAJEg", "shared_folder_id": "6986824", "sharing_info": {"read_only": false, "shared_folder_id": "6986824"}}, {".tag": "folder", "name": "Orex Team Share", "path_lower": "/orex team share", "path_display": "/Orex Team Share", "id": "id:uMctvDFrpJwAAAAAAAAJEA", "shared_folder_id": "2510656", "sharing_info": {"read_only": false, "shared_folder_id": "2510656"}}, {".tag": "folder", "name": "Orex External Share", "path_lower": "/orex external share", "path_display": "/Orex External Share", "id": "id:uMctvDFrpJwAAAAAAAAJDw", "shared_folder_id": "158922628", "sharing_info": {"read_only": false, "shared_folder_id": "158922628"}}, {".tag": "folder", "name": "Empyrean DLL", "path_lower": "/empyrean dll", "path_display": "/Empyrean DLL", "id": "id:uMctvDFrpJwAAAAAAAAI8A", "shared_folder_id": "271897729", "sharing_info": {"read_only": false, "shared_folder_id": "271897729"}}, {".tag": "folder", "name": "Empyrean MAC", "path_lower": "/empyrean mac", "path_display": "/Empyrean MAC", "id": "id:uMctvDFrpJwAAAAAAAAI7Q", "shared_folder_id": "553663340", "sharing_info": {"read_only": false, "shared_folder_id": "553663340"}}, {".tag": "folder", "name": "Empyrean", "path_lower": "/empyrean", "path_display": "/Empyrean", "id": "id:uMctvDFrpJwAAAAAAAAI7A", "shared_folder_id": "461867665", "sharing_info": {"read_only": false, "shared_folder_id": "461867665"}}, {".tag": "folder", "name": "non-IT", "path_lower": "/non-it", "path_display": "/non-IT", "id": "id:uMctvDFrpJwAAAAAAAAI6Q"}, {".tag": "folder", "name": "PIAB (Old) Projects", "path_lower": "/piab (old) projects", "path_display": "/PIAB (Old) Projects", "id": "id:uMctvDFrpJwAAAAAAAAytA", "shared_folder_id": "153476913", "sharing_info": {"read_only": false, "shared_folder_id": "153476913"}}, {".tag": "folder", "name": "Empyrean Exchange", "path_lower": "/empyrean exchange", "path_display": "/Empyrean Exchange", "id": "id:uMctvDFrpJwAAAAAAAAAog", "shared_folder_id": "467521025", "sharing_info": {"read_only": false, "shared_folder_id": "467521025"}}, {".tag": "folder", "name": "Empyrean Backups (GE Experts)", "path_lower": "/empyrean backups (ge experts)", "path_display": "/Empyrean Backups (GE Experts)", "id": "id:uMctvDFrpJwAAAAAAAAzwg"}, {".tag": "folder", "name": "Orex on Windows8", "path_lower": "/orex on windows8", "path_display": "/Orex on Windows8", "id": "id:uMctvDFrpJwAAAAAAAAz9A", "shared_folder_id": "809993137", "sharing_info": {"read_only": false, "shared_folder_id": "809993137"}}, {".tag": "folder", "name": "PIAB Projects", "path_lower": "/piab projects", "path_display": "/PIAB Projects", "id": "id:uMctvDFrpJwAAAAAAAA0PQ"}, {".tag": "folder", "name": "Apps", "path_lower": "/apps", "path_display": "/Apps", "id": "id:uMctvDFrpJwAAAAAAABxdg"}, {".tag": "folder", "name": "RADStudioRepos", "path_lower": "/radstudiorepos", "path_display": "/RADStudioRepos", "id": "id:uMctvDFrpJwAAAAAAAC3ZQ"}, {".tag": "folder", "name": "Aviation", "path_lower": "/aviation", "path_display": "/Aviation", "id": "id:uMctvDFrpJwAAAAAAAC4Hg"}, {".tag": "folder", "name": "PSR Files", "path_lower": "/psr files", "path_display": "/PSR Files", "id": "id:uMctvDFrpJwAAAAAAANCwA"}, {".tag": "folder", "name": "IDonDemand", "path_lower": "/idondemand", "path_display": "/IDonDemand", "id": "id:uMctvDFrpJwAAAAAAANDsw"}, {".tag": "folder", "name": "Kevin-Black Backup", "path_lower": "/kevin-black backup", "path_display": "/Kevin-Black Backup", "id": "id:uMctvDFrpJwAAAAAAANEGA"}, {".tag": "folder", "name": "Cloudfogger", "path_lower": "/cloudfogger", "path_display": "/Cloudfogger", "id": "id:uMctvDFrpJwAAAAAAANEzw", "shared_folder_id": "1054888989", "sharing_info": {"read_only": false, "shared_folder_id": "1054888989"}}, {".tag": "folder", "name": "Project XE7 Delphi DbX DLL", "path_lower": "/project xe7 delphi dbx dll", "path_display": "/Project XE7 Delphi DbX DLL", "id": "id:KAcXFipH4eAAAAAAAAAAAQ"}, {".tag": "folder", "name": "Book-Manuals", "path_lower": "/book-manuals", "path_display": "/Book-Manuals", "id": "id:7ylAq_27DsAAAAAAAAAAAQ"}, {".tag": "folder", "name": "DbXSecure Server", "path_lower": "/dbxsecure server", "path_display": "/DbXSecure Server", "id": "id:YW0XU_Mi10AAAAAAAAAAAQ"}, {".tag": "folder", "name": "DbXSecure Temp Archive", "path_lower": "/dbxsecure temp archive", "path_display": "/DbXSecure Temp Archive", "id": "id:37xrAYX4PvAAAAAAAAAAAQ"}, {".tag": "folder", "name": "DbXSecure Temp", "path_lower": "/dbxsecure temp", "path_display": "/DbXSecure Temp", "id": "id:aWRyTEW-F-AAAAAAAAAAAQ", "shared_folder_id": "852368198", "sharing_info": {"read_only": false, "shared_folder_id": "852368198"}}, {".tag": "folder", "name": "Rad Studio 10", "path_lower": "/rad studio 10", "path_display": "/Rad Studio 10", "id": "id:vynGVq84_oAAAAAAAAAAAQ", "shared_folder_id": "1212976430", "sharing_info": {"read_only": false, "shared_folder_id": "1212976430"}}, {".tag": "folder", "name": "RAD Studio Projects", "path_lower": "/rad studio projects", "path_display": "/RAD Studio Projects", "id": "id:nhFdpbcxUiAAAAAAAAAAAQ", "shared_folder_id": "1212977924", "sharing_info": {"read_only": false, "shared_folder_id": "1212977924"}}, {".tag": "folder", "name": "DbXSecureFolders", "path_lower": "/dbxsecurefolders", "path_display": "/DbXSecureFolders", "id": "id:qwP7-MY3ZeAAAAAAAAAAAQ"}, {".tag": "folder", "name": "DbXSecure USA", "path_lower": "/dbxsecure usa", "path_display": "/DbXSecure USA", "id": "id:wno4oxmHlvAAAAAAAAAAAQ", "shared_folder_id": "1234649607", "sharing_info": {"read_only": false, "shared_folder_id": "1234649607"}}, {".tag": "folder", "name": "Chris Photos", "path_lower": "/chris photos", "path_display": "/Chris Photos", "id": "id:uMctvDFrpJwAAAAAAANFIQ"}, {".tag": "folder", "name": "System Volume Information", "path_lower": "/system volume information", "path_display": "/System Volume Information", "id": "id:uMctvDFrpJwAAAAAAANGCw"}, {".tag": "folder", "name": "Camera Uploads", "path_lower": "/camera uploads", "path_display": "/Camera Uploads", "id": "id:uMctvDFrpJwAAAAAAANp-g"}, {".tag": "folder", "name": "System Common", "path_lower": "/system common", "path_display": "/System Common", "id": "id:uMctvDFrpJwAAAAAAANvgg"}, {".tag": "folder", "name": "System Windows 10 Development", "path_lower": "/system windows 10 development", "path_display": "/System Windows 10 Development", "id": "id:uMctvDFrpJwAAAAAAANvgQ"}, {".tag": "folder", "name": "System macOS Guest Main", "path_lower": "/system macos guest main", "path_display": "/System macOS Guest Main", "id": "id:uMctvDFrpJwAAAAAAANvoQ"}, {".tag": "folder", "name": "System Parallels macOS Guest Main", "path_lower": "/system parallels macos guest main", "path_display": "/System Parallels macOS Guest Main", "id": "id:uMctvDFrpJwAAAAAAANvpQ"}, {".tag": "folder", "name": "Parallels Windows 10 Guest", "path_lower": "/parallels windows 10 guest", "path_display": "/Parallels Windows 10 Guest", "id": "id:uMctvDFrpJwAAAAAAAN4mA"}, {".tag": "folder", "name": "Hash Test", "path_lower": "/hash test", "path_display": "/Hash Test", "id": "id:uMctvDFrpJwAAAAAAAN4yA"}, {".tag": "folder", "name": "DbXSecure", "path_lower": "/dbxsecure", "path_display": "/DbXSecure", "id": "id:uMctvDFrpJwAAAAAAAN9gw", "shared_folder_id": "1540538708", "sharing_info": {"read_only": false, "shared_folder_id": "1540538708"}}, {".tag": "folder", "name": "DbXSecure Testing", "path_lower": "/dbxsecure testing", "path_display": "/DbXSecure Testing", "id": "id:uMctvDFrpJwAAAAAAAN9mg", "shared_folder_id": "1549809894", "sharing_info": {"read_only": false, "shared_folder_id": "1549809894"}}, {".tag": "file", "name": ".empfsN", "path_lower": "/.empfsn", "path_display": "/.empfsN", "id": "id:uMctvDFrpJwAAAAAAAN9kQ", "client_modified": "2017-09-04T00:03:56Z", "server_modified": "2017-09-04T00:03:56Z", "rev": "4c8b66de0026775a", "size": 2372, "content_hash": "42f67c2389c77c63b819dac7a35cbf424bb0900ebb02a0179a75b5eb3aa99fe8"}], "cursor": "AAH54hSmxkB16UU0zVbVIvBe7gtnPLgfW9CdWhYJox5LSVY7bVWhtViIpBpzIAwuZfaCNaBLKD0zy1nPCgtsvlVb9X1ciZpGIKRVJnHzrabtvEsGoOot4nGzUDJD-aROF7yhwunBCouUHtXKSsZg08vWwKRvsk8XUqxKtrvXihf33JcdqQtSK3cHgnjkbLd3M6Q9E9lnYxlagwuafQo03pw4te-0tEn76Ts6eqiyK6rVU3yArGT6rvFY7RgLC28dhrSPV8S5GKYKuUdM5IAsP4iwfT_UN9VuN4Gcb7wop20OPAI1-p6dHLHYJwPukIMFDpK4FmiupNwzpSNRwEJ7Ng7kEVdf1vnoy5SBsMgGwMlbR1z7cz0xTaKh4A1Ysas9_uDVhDU467kUz-9v0V5I0D_jcpRXdJ6A-OKN-mO8NZm8UF37ll-1e7zYKBYQkQHoprUEKTEdYF5AnFUNLNDP8PPpkehznuqoGi54I5YMON5d96SpYrUr_IfzojDZfVFUbv46AuuCWaGDFy_RFFjnestPBZTZao6mJPx0-SJlyLB_BRWiJ1HXFnBdA_FfalDsBDPTF6VD3E2qa4f-5kFp8ZkVdro4F-E1hCl0C2pznlN0Dgteg1umX7Wfzx6tTTTzwDsGRnuASw7QxToGsvsJZbG-5wE9IJw5o-4xU2xD5iAhOEcFxYOofVue4w6otk2XItKR9X9G096NRVdMAA973UxcvLMQPMxIyZ1QVHSLOUjbwtz-gdzXS78fGpHw76RZcScyU_v2cJvMCTEi-g3cx2wzdEU8oU0idJp3N7VYHoq4tYems3ELl4-DqRFJPyzDZYJIzqoy1FsJMaNFq8k5f5oinSm7wAO6aBHhVtBilqGf0fwsLbsAy7_Y5tfCymZVu8YUmPWFxCjpnRvbW96hEy6qps1ur-c2zAXJAQSV4-4YO-sIm8R6poy8gbBtN2uQTFrxrdmi95Goyuk3rYk8XHutMXYjPD7bqos4NsHWYGOgSXxt2tnUJtawNJDuOKE4VdIFAIJjaiGJ3eUYqhi-zj04DZsjhYX2Te0Vi_KPPcrO5w", "has_more": false}
BUT BUT BUT, I ran the Dropbox demo and it failed in exacly the same way as my application. The logfile indicates that it is getting a token, but using OAUTH1 (I think), how can this be?
The contents of the TadvDropboxDataStore logfile are:
20171006T111624:GOT ACCESS TOKENS: dLi0f59i4z4AAAAAAAApcQKgGcwQHAbw55vq_KQjQfOhlhdGeJ68NM6zsofuNp4_ /
20171006T111624:HTTPS GET RESULT:{"error": "v1_retired"}
20171006T114344:HTTPS GET RESULT:{"error": "v1_retired"}
This looks to me like the token is OK, but it is still trying to use OAUTH1. So it does exactly as in my application, The webpage is displayed, I enter credentials, I allow, the connection 'looks' like it is successful, but NOTHING is displayed. I have uninstalled and re-installed the latest version of the VCL cloud pack and I have manually compiled it checking (for example) the version numbers for CloudBase.pas (1131) and CloudCustomDropbox.pas (2002).
How can one demo use OAUTH1 and yet the other demo use OAUTH2? I am totally confused??
Kevin