Loading...

Attendance studentGrid

Request Description

Retrieves student attendance information for dates specified. Stuents have various bits of information retrieved about them, and are grouped by their UPN numbers.


Request Information

Response Format:JSON
Requires Authentication:Yes
Cached:Yes
Cache Duration:6 Hours

Parameters

date_from
Optional
Start date to lookup attendance data from
Use format YYYY-MM-DD
If not supplied, last occurrence of 02/09 will be used
date_to
Optional
End date of attendance data lookup
Use format YYYY-MM-DD
If not supplied, next occurrence of 01/09 will be used

Example Request

$a = $api->sendRequest(
  array( 
      'controller'      => 'Attendance',  
      'action'          => 'studentGrid',
      'date_from'       => '2014-09-02',
      'date_to'         => '2015-09-01'
  )
  );

Example Result

Array
(
    [data] => Array
        (
            [L463247103551] => Array
                (
                    [ID] => 9423
                    [FORENAME] => Adam
                    [SURNAME] => Anthony
                    [ATTEND] => 100.00
                    [AUTHABS] => .00
                    [UNAUTHABS] => .00
                    [YEAR] => 11
                    [REG] => Y8
                    [HOUSE] => York
                    [FSM] => F
                    [FSM6] => T
                )

            [M8923582356239] => Array
                (
                    [ID] => 14224
                    [FORENAME] => Gina
                    [SURNAME] => Heston
                    [ATTEND] => 100.00
                    [AUTHABS] => .00
                    [UNAUTHABS] => .00
                    [YEAR] => 7
                    [REG] => Y6
                    [HOUSE] => York
                    [FSM] => T
                    [FSM6] => T
                )

            [G823579523519] => Array
                (
                    [ID] => 14215
                    [FORENAME] => Amanda
                    [SURNAME] => Peters
                    [ATTEND] => 100.00
                    [AUTHABS] => .00
                    [UNAUTHABS] => .00
                    [YEAR] => 7
                    [REG] => C12
                    [HOUSE] => Chester
                    [FSM] => F
                    [FSM6] => F
                )
        )
)