Loading...

Staff carList

Request Description

Returns a list of staff car information including make, modal and colour. For staff who have multiple cars, show each car on a separate row.


Request Information

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

Parameters

This request does not take any parameters

Example Request

$a = $api->sendRequest(
  array( 
    'controller'    => 'Staff',  
    'action'        => 'carList'
  )
  );

Example Result

Array
(
    [result] => Success
    [data] => Array
        (
            [0] => Array
                (
                    [SURNAME] => Dillian
                    [FORENAME] => Mark
                    [REG] => XXXX XXX
                    [MODEL] => Ford KA
                    [COLOUR] => Red
                )

            [1] => Array
                (
                    [SURNAME] => Smith
                    [FORENAME] => Andrew
                    [REG] => XXXX XXX
                    [MODEL] => Renault Scenic
                    [COLOUR] => Blue
                )

        )

)