-
Notifications
You must be signed in to change notification settings - Fork 183
Search
Steven Davidovitz edited this page May 13, 2013
·
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="[email protected]"
# http://developer.zendesk.com/documentation/rest_api/users.html#search-users
client.users.search(:query => "[email protected]")
# 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')
Also relevant is the page on client-side caching.