- 
                Notifications
    
You must be signed in to change notification settings  - Fork 185
 
Search
        Garrick Rohm edited this page Apr 17, 2018 
        ·
        3 revisions
      
    See:
- https://github.com/zendesk/zendesk_api_client_rb/issues/10
 - https://github.com/zendesk/zendesk_api_client_rb/issues/14
 - https://github.com/zendesk/zendesk_api_client_rb/issues/29
 - https://github.com/zendesk/zendesk_api_client_rb/issues/54
 
  # Corresponds to /api/v2/users/search?query="test@example.com"
  # http://developer.zendesk.com/documentation/rest_api/users.html#search-users
  # This is a special case for users only; other resources do not have this search API.
  client.users.search(:query => "test@example.com")
  # Corresponds to /api/v2/search?query="type:ticket moon"
  # http://developer.zendesk.com/documentation/rest_api/search.html
  client.search(query: 'type:ticket moon').first
  # Finding by id
  client.tickets.find(id: '24')
  # Finding Organizations by external_id
  client.organizations.search(:external_id => '0011I000009Ui7cQAC')Also relevant is the page on client-side caching.