want100cookies / xedule-to-array
Get any information from the roosters.xedule.nl website
Requires
- php: >=5.5.0
- lib-curl: *
- nesbot/carbon: ^1.21
- sunra/php-simple-html-dom-parser: ^1.5
This package is not auto-updated.
Last update: 2020-01-24 16:04:41 UTC
README
This project is deprecated because Xedule has decided to close down it's API
Xedule-To-Array
Convert any schedule from roosters.xedule.nl to an array
Note: the paremeters named below must be entered in the given order
Methods
- constructor
- getAllOrgs
- getOrgID
- getAllLocations
- getLocationID
- getAllGroups
- getGroupID
- getGroupSchedule
constructor
The constructor can have a non required parameter with the base URL. Standard the base URL is https://roosters.xedule.nl
getAllOrgs
Get all the organisations
getOrgID
Needs parameter $orgName Get the ID from the organisation with the given name
getAllLocations
Needs parameter $orgId Get all the locations for the organisation with the given ID
getLocationID
Needs parameters $locationName, $orgId Get the ID from the location with the given name
getAllGroups
Needs parameter $locationID Get all groups from the location with the given ID
getGroupID
Needs parameters $groupName, $locationID Get the ID from the group with the given Name
getGroupSchedule
Needs parameters $groupId, $week, $year Get any schedule in the following format:
array( array( 'DESCRIPTION' => 'some class' 'START' => Carbon Object, 'END' => Carbon Object ), array( 'DESCRIPTION' => 'some class' 'START' => Carbon Object, 'END' => Carbon Object ) )