Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans to implement dropbox search v2? #168

Open
wetmarble opened this issue May 13, 2020 · 3 comments
Open

Any plans to implement dropbox search v2? #168

wetmarble opened this issue May 13, 2020 · 3 comments

Comments

@wetmarble
Copy link

Search V1 is deprecated by v2.

@sanishan
Copy link

Open
Dropbox/Dropbox.php

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

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

@wetmarble
Copy link
Author

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.

@sanishan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants