Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EMS hours #230

Open
drewvolz opened this issue May 6, 2018 · 1 comment
Open

Add EMS hours #230

drewvolz opened this issue May 6, 2018 · 1 comment

Comments

@drewvolz
Copy link
Member

drewvolz commented May 6, 2018

This is an epic of a task. But we found the public facing interface that shows when spaces are reserved or not around Carleton — and it has an API. So why not use it!

@hawkrives
Copy link
Member

hawkrives commented May 6, 2018

Example:

curl 'https://ems.ads.carleton.edu/WebApp/ServerApi.aspx/BrowseEvents' \
                    -X POST \
                    -H 'Content-Type: application/json; charset=UTF-8' \
                    --data-binary '{"filterData":{"filters":[{"filterName":"StartDate","value":"2017-08-1 00:00:00","displayValue":3,"filterType":3},{"filterName":"EndDate","value":"2017-09-1 00:00:00","filterType":3,"displayValue":""},{"filterName":"TimeZone","value":"64","displayValue":"","filterType":2},{"filterName":"RollupEventsToReservation","value":"false","displayValue":""},{"filterName":"ResultType","value":"Monthly","displayValue":""}]}}' | jq -r .d | jq .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants