Loading...

Attendance termDates

Request Description

Retrieves term dates for the academic year supplied.


Request Information

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

Parameters

yearID of the academic year
Use Attendance\academicYear to get the ID for the current academic year.

Example Request

$a = $api->sendRequest(
  array( 
      'controller'      => 'Attendance',  
      'action'          => 'termDates',
      'year'            => '23293'
  )
  );

Example Result

  Array
(
    [data] => Array
        (
            [0] => Array
                (
                    [DESC] => Autumn Term
                    [START] => 2014-09-02 00:00:00
                    [END] => 2014-12-19 23:59:00
                )

            [1] => Array
                (
                    [DESC] => Spring Term
                    [START] => 2015-01-05 00:00:00
                    [END] => 2015-04-02 23:59:00
                )

            [2] => Array
                (
                    [DESC] => Summer Term
                    [START] => 2015-04-20 00:00:00
                    [END] => 2015-07-22 23:59:00
                )

        )

)