Loading...

Bully listStudents

Request Description

Returns an array of students available to select as either a bully or a victim. Columns returned: Name, Year and ID. name is formed as 'Surname, Firstname', Year is 2 digit representation (Eg. 07 or 10)


Request Information

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

Parameters

This request does not take any parameters

Example Request

$a = $api->sendRequest(
  array( 
    'controller'    => 'Bully',  
    'action'        => 'listStudents'
  )
  );

Example Result

Array
(
    [result] => Success
    [data] => Array
        (
            [0] => Array
                (
                    [NAME] => Archer, Timothy
                    [YEAR] => 11
                    [ID] => 9063
                )

            [1] => Array
                (
                    [NAME] => Ash, Chloe
                    [YEAR] => 07
                    [ID] => 18624
                )

        )
)