![]() ![]() GroupDocs.Comparison for Java is a Java class library & on-premise API for building document comparison & information extraction Java applications with support to compare files from Microsoft Office Word, Excel, PowerPoint, Visio, OneNote, OpenOffice, eBook, PDF, images. ![]() Instead, now you must use the Short-Lived Token and Refresh Tokens in your applications. The problem is that since September 30th, 2021, Dropbox turn off the Long-Lived Tokens. I thought the DropboxClient would do "it's thing" using the initial access and refresh tokens. Java High Code API to Compare Documents & Extract Information. Recently I was implementing a Dropbox integration with my Java+Spring application using Dropbox API and Java SDK. It concerns an MVC webapp, and the dropboxclient is newly instantiated on every use. The Dropbox Developer Community is your space to get help, provide feedback on our APIs and dev tools, and make connections with other developers. Using the it works for a while (a few hours after initial usser auth), but the next day it fails with " : expired_access_token/" The DropboxClient is instantiated with the Access_token and refresh token retrieved in the first part. The tokens are persisted in the DB and to be used for longer periods (months) without the user needing to re-login The resulting POST http request gives me a code and DropboxOAuth2Helper.ProcessCodeFlowAsync provides me an access token and refresh token based on that code. ![]() With an authorization token you can instantiate a SpatieDropboxClient. I ask for user authentication (only once) using the DropboxOAuth2Helper.GetAuthorizeUri with OAuthResponseType.Code and TokenAccessType.Offline. Youll find more info at the Dropbox Developer Blog. Greg, I still can't get it to work for a duration longer than the access token's validity. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |