This pull request (PR) resolves #18 and provides insight into #24
Primary Changes
🔍 search: New function in Documents to search for files or folders using fuzzy matching. This function does not overwrite the find function. find can still be used if the exact folder or filename is known and should be since the time to search through all files/folders can be extensive.
👨🏻🏫 search_file snippet: Example use cases of the new search
Related Changes
get Limit: Fixed an error where only some of the documents would be returned which is similar to the issue in #24. Now the get method cycles through pages with a limit of 10000 (which is bigger than the max value but Procore does not provide this).
Universal get: From the search, I learned I could use the __folders__ or __files__ endpoint as a way to filter rather than creating copies of almost the exact same function and putting them in the Folders and Files subclasses.
This pull request (PR) resolves #18 and provides insight into #24
Primary Changes
search
: New function inDocuments
to search for files or folders using fuzzy matching. This function does not overwrite thefind
function.find
can still be used if the exact folder or filename is known and should be since the time to search through all files/folders can be extensive.search_file
snippet: Example use cases of the new searchRelated Changes
get
Limit: Fixed an error where only some of the documents would be returned which is similar to the issue in #24. Now the get method cycles through pages with a limit of 10000 (which is bigger than the max value but Procore does not provide this).get
: From thesearch
, I learned I could use the__folders__
or__files__
endpoint as a way to filter rather than creating copies of almost the exact same function and putting them in theFolders
andFiles
subclasses.