spatie / flysystem-dropbox

A flysystem driver for Dropbox that uses the v2 API
https://freek.dev/734-dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application
MIT License
342 stars 50 forks source link

Problem while using appKey and appSecret for creating client. #55

Closed bharanidharanbabu closed 3 years ago

bharanidharanbabu commented 3 years ago

Documentation says there are two ways to create a client.

  1. $client = new DropboxClient($config['authorization_token']); with token
  2. $client = new DropboxClient([$config['appKey'],$config['appSecret']]); with App key and App secret

First one is working properly, files showup on dropbox when backup is run.Second one is not, it doesn't show any error, it also says backup to dropbox is successfull, but when I check the dropbox, there is nothing there. Even more if I put intentionally wrong secret and key, it still shows backup is successfull.

Dropbox says permanent tokens will be deprecated in future, shortlived tokens are not good for production. Key-secret is not working properly. Can someone have a look into this?

spatie-bot commented 3 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.