Loading...

Staff staffID

Request Description

Uses information supplied to find the Person ID of a member of staff. All parameters are optional but only one result will be returned to the user - closest match wins. Date of birth of staff member is also returned in the format YYYY-MM-DD


Request Information

Response Format:JSON
Requires Authentication:Yes
Cached:No
Cache Duration:N/A

Parameters

forename
Optional
First name of the person to whom to lookup
surname
Optional
Surname for the member of staff to lookup
email
Optional
E-mail address of the staff member (home/mobile/work)
phone
Optional
Phone number of the staff member (home/mobile/work)

Example Request

$a = $api->sendRequest(
  array( 
    'controller'    => 'Staff',  
    'action'        => 'staffID',  
    'forename'      => '',
    'surname'       => 'Elliott',
    'email'         => 'celliott@nationalce-ac.org.uk',
    'phone'         => '',
  )
  );

Example Result

Array
(
    [result] => Success
    [data] => Array
        (
            [person_id] => 8294
            [chosen_forename] => Christopher
            [surname] => Elliott
            [dob] => 1986-10-02 00:00:00
        )

)