ucla-timetable v1.0.5
ucla-timetable
A crystal lang interface to UCLAs Class Schedule: https://developer.api.ucla.edu/api/261
Installation
-
Add the dependency to your
shard.yml
:dependencies: ucla-timetable: github: place-technology/ucla-timetable
-
Run
shards install
Usage
require "ucla-timetable"
period_start = Time.local(UCLA::TIMEZONE).at_beginning_of_day
period_end = period_start.at_end_of_day
timetable = UCLA::Timetable.new("https://qa.api.ucla.edu", "client_id", "client_secret")
page_handler = timetable.list_classes
page_handler.each_published do |klass|
events = klass.calendar_events(timetable, period_start, period_end)
puts events
end
Contributing
- Fork it (https://github.com/place-technology/ucla-timetable/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Stephen von Takach - creator and maintainer
Repository
ucla-timetable
Owner
Statistic
- 0
- 0
- 1
- 0
- 1
- 11 days ago
- August 1, 2025
License
MIT License
Links
Synced at
Sat, 23 Aug 2025 06:11:06 GMT
Languages