dropbox-php-sdk
dropbox-php-sdk copied to clipboard
Any plans to implement dropbox search v2?
Search V1 is deprecated by v2.
Open Dropbox/Dropbox.php
Find:
$response = $this->postToAPI('/files/search', $params);
Replace with:
$response = $this->postToAPI('/files/search_v2', $params);
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.
Yes Do this:
$searchResults = $dropbox->search("/", $searchQuery, ['options'=>['max_results' => 1]]);