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

List lead "options" #20

Closed
JonasNielsen opened this issue Apr 21, 2015 · 0 comments
Closed

List lead "options" #20

JonasNielsen opened this issue Apr 21, 2015 · 0 comments

Comments

@JonasNielsen
Copy link

Cool gem!

I was a bit confused by the list_lead definition. Why does options default to a hash, when the argument only works with a string?

# works
client.list_leads('name:"Some name"', true)
# does not work
client.list_leads({"name" => "Some name"}, true)

Also, just to be sure, the gem does not support limiting fields, right? Explained on the Close.io documentation page:

Most endpoints support a _fields parameter that lets you specify which fields you require in the response. For example, if you only need ID and display_name when listing Leads, add ?_fields=id,display_name to the URL. This will improve performance of your API calls.

Given how list_leads is implemented I don't think it is possible to pass on that argument.

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

1 participant