Method: BaseCRM::ContactsService#where
- Defined in:
- lib/basecrm/services/contacts_service.rb
#where(options = {}) ⇒ Array<Contact>
Retrieve all contacts
get ‘/contacts’
Returns all contacts available to the user according to the parameters provided
42 43 44 45 46 |
# File 'lib/basecrm/services/contacts_service.rb', line 42 def where( = {}) _, _, root = @client.get("/contacts", ) root[:items].map{ |item| Contact.new(item[:data]) } end |