brium
Version, currently 0.4.07 versions
github.com/manastech/crystal_brium
Access Brium's API using Crystal
1 stars
0 dependents
License: not declared
Nothing has been indexed for 0.4.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
brium:
github: manastech/crystal_brium
version: ~> 0.4.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.4.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
crystal_brium
Access Brium's API using Crystal.
Projectfile
deps do
github "manastech/crystal_brium"
end
Usage
require "brium"
client_id = "..."
client_secret = "..."
oauth_client = Brium.new_oauth_client(client_id, client_secret)
access_token = # some OAuth2::AccessToken
session = OAuth2::Session.new(oauth_client, access_token) do
puts "Refreshing access token..."
end
api = Brium::API.new session
# Get workers
workers = api.workers active: true, admin: false, suspended: false
# Get clients
clients = api.clients
# Get entries
entries = api.entries billable_status: "billable,billed"
# Or sum some entries hours
total_hours = api.entries_sum billable_status: "billable,billed"
# Get holidays
holidays = api.holidays kind: "vacations", since_date: 3.days.ago
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.0- Tagged
- Jul 31, 2023
- Commit
bbdfd90d4909- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/manastech/crystal_brium
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 7