get user info from helpdesk with php + api

get user info from helpdesk with php + api

Using PHP + API, is it possible to search user desk customers by email to see if a customer exists and - if so - return their details?

Code appreciated!