Closed eengoron closed 4 years ago
@taylorbrooks -- Bump on this :)
+1 on this one. The current parsing of the object is limiting compared to being able to pass the query string directly.
This solution works well in practice and is retro-compatible.
Fixes #25
In this PR, I add the ability to use a
query
parameter inlead.search
to specify your query as a single string instead of an itemized list of search keywords. This allows you to use thenot
keyword and also allows you to copy and paste search queries directly from Close into your code if applicable.An example of how to use the
query
parameter:closeio.lead.search({ query: 'name:"Bruce Wayne" email_address:bruce@wayneenterprises.com' })
@taylorbrooks -- Can you please take a look? :)