{"id":18336332,"url":"https://github.com/launchpadlab/centaman","last_synced_at":"2025-04-09T19:55:22.408Z","repository":{"id":62555446,"uuid":"98559436","full_name":"LaunchPadLab/centaman","owner":"LaunchPadLab","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-09T00:38:03.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-09T19:55:14.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaunchPadLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-27T16:38:27.000Z","updated_at":"2019-02-09T00:38:05.000Z","dependencies_parsed_at":"2022-11-03T05:30:46.520Z","dependency_job_id":null,"html_url":"https://github.com/LaunchPadLab/centaman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Fcentaman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Fcentaman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Fcentaman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Fcentaman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaunchPadLab","download_url":"https://codeload.github.com/LaunchPadLab/centaman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103911,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T20:07:34.072Z","updated_at":"2025-04-09T19:55:22.379Z","avatar_url":"https://github.com/LaunchPadLab.png","language":"Ruby","readme":"# Centaman\n\nA wrapper for the Centaman Ticketing API.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'centaman'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install centaman\n\n## Usage\n\nRetrieve Booking Type Objects\n- Defaults to current date if no date parameters given\n```ruby\n  Centaman::Service::BookingType.new(start_date: DATE, end_date: DATE).objects\n```\n\nFind a Booking Type\n- Requires the booking type id (integer) and date\n```ruby\n  Centaman::Service::BookingType.find(BOOKING_TYPE_ID, DATE)\n```\n\nRetrieve Booking Time Objects for a Booking Type\n- booking_type_id (integer) required to retrieve booking times for a specific booking type, else returns all booking times for all booking types\n- start_date \u0026\u0026 end_date required to retrieve booking times for a specific date, else defaults to current date\n```ruby\n  Centaman::Service::BookingTime.new(booking_type_id: BOOKING_TYPE_ID, start_date: DATE, end_date: DATE).objects\n```\n\nFind a Booking Time\n- Requires the associated booking type id (integer), booking time id (integer), and date\n```ruby\n  Centaman::Service::BookingTime.find(BOOKING_TYPE_ID, BOOKING_TIME_ID, DATE)\n```\n\n\n## Required Environment Variables\n\nThis gem assumes the following environment variables are defined by the application\n\n- CENTAMAN_API_URL\n- CENTAMAN_API_USERNAME\n- CENTAMAN_API_PASSWORD\n- CENTAMAN_API_TOKEN (Optional. Required if CENTAMAN_API_USERNAME and CENTAMAN_API_PASSWORD are not provided.)\n- FIXIE_URL (Optional. Used with FIXIE proxy to route outbound requests through a set of static IP addresses.)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/LaunchPadLab/centaman.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchpadlab%2Fcentaman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchpadlab%2Fcentaman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchpadlab%2Fcentaman/lists"}