Scripts for testing or working with the Modern Campus CMS API
Script that fetches pending approval events. Done as a proxy since auth is required for MC API. All Events endpoint is cached every 30 minutes.
- All Events:
/events
- Purge All Events Cache:
/events?purge
- Date Range:
/events?start={date}&end={date}
- Date in YYYY-MM-DD format - Single Event:
/events/{event-id}
- Create
cache
directory inside cloned repo. Set group to www-data and permissions to 775 - Duplicate
omni_api.config.example
toomni_api.config
, place username/password in file, and move to configs folder - May have to set location rewrite rule in NGINX to pass paramaters to script
- Create
cache
directory inside cloned repo. Set group to www-data and permissions to 775 - Duplicate
omni_api.config.example
toomni_api.config.local
and place username/password in file - Uncomment DEV config require and comment out the PROD require in
calendar-pending/index.php