lanej / zendesk2

Zendesk API V2 client using Cistern
http://lanej.io/zendesk2/
MIT License
25 stars 28 forks source link

Search users by email address #7

Closed mutle closed 11 years ago

ey-pairing commented 11 years ago
client.users.search(email: "jlane@engineyard.com")
 => [#<Zendesk2::Client::User:0x7f83a3b7a5b0 attributes={url:"https://engineyarddev.zendesk.com/api/v2/users/241222663.json",id:241222663,external_id:nil,name:"Josh Lane",alias:nil,created_at:2012-07-25 18:52:41 UTC,updated_at:2012-08-04 06:52:42 UTC,active:true,verified:true,shared:false,locale_id:nil,locale:"en-US",time_zone:"America/Los_Angeles",last_login_at:2012-08-04 06:52:42 UTC,email:"jlane@engineyard.com",phone:nil,signature:nil,details:"{}",notes:nil,organization_id:22038176,role:"end-user",custom_role_id:nil,moderator:false,ticket_restriction:"requested",only_private_comments:false,tags:[],suspended:false,photo:nil}>] 
lanej commented 11 years ago

all collections have the #search function available