dropbox-php-sdk icon indicating copy to clipboard operation
dropbox-php-sdk copied to clipboard

Any plans to implement dropbox search v2?

Open wetmarble opened this issue 4 years ago • 3 comments

Search V1 is deprecated by v2.

wetmarble avatar May 13 '20 22:05 wetmarble

Open Dropbox/Dropbox.php

Find: $response = $this->postToAPI('/files/search', $params);

Replace with: $response = $this->postToAPI('/files/search_v2', $params);

sanishan avatar Dec 17 '20 01:12 sanishan

I believe I tried that at one point, but dropbox has changed the parameters that are sent to the search rpc. I have since moved to a different dropbox api that is currently maintained. Even though I was able to get this repository to work, I went with a more streamlined repository that was easier for me to modify.

wetmarble avatar Dec 17 '20 02:12 wetmarble

Yes Do this: $searchResults = $dropbox->search("/", $searchQuery, ['options'=>['max_results' => 1]]);

sanishan avatar Dec 17 '20 03:12 sanishan