I'm trying to search files in a folder based on file tag, python SDK, yet encountering an error when trying to use my folder path:
from dropbox.files import SearchOptions
# search_op = SearchOptions() # this works but gives me everything from master folder
search_op = SearchOptions(path="/Thang Nguyen/Nano/Photos/Appurtenances/", max_results=10)
dm = dbx.files_search_v2(query="significant", options=search_op)
raise BadInputError(request_id, res.text)
dropbox.exceptions.BadInputError: BadInputError('58ddfa8a32824ea9b8e80882f2ef3a59', 'Error in call to API function "files/search_v2": invalid_argument')
Also, right now I'm passing in "query" and I'm assuming that would retrieve all files associate with "significant" keyword. How do I specify to search by tags only? Any code example would be a great help.
I also need to implement this function in Java.