• Stars
    star
    1
  • Language
    Crystal
  • Created almost 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Access Brium's API using Crystal

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

More Repositories

1

webmock.cr

Mock HTTP::Client
Crystal
103
star
2

crystal_ruby

Write Ruby extensions in Crystal
Crystal
99
star
3

frank

A small Sinatra clone for Crystal
Crystal
77
star
4

middleman-search

LunrJS-based search for Middleman
Ruby
58
star
5

handbook

Manas Handbook
CSS
21
star
6

crocoa

Cocoa for crystal
Crystal
20
star
7

crystal_slack

Parse Slack slash commands or send incoming web hooks from Crystal
Crystal
20
star
8

benchy

A tool to perform benchmarks
Crystal
15
star
9

rancher-autoredeploy

Autoredeploy images on Docker Hub webhook pushes in Rancher
Crystal
15
star
10

includes-count

Ruby
14
star
11

crystal_redis

Redis client for Crystal
Crystal
14
star
12

atom-crystal-tools

Atom package that integrates crystal tools
CoffeeScript
10
star
13

listings

Simple creation of listings in rails applications
Ruby
5
star
14

fig-dns

DNS server for Docker containers managed by Fig
JavaScript
5
star
15

licit

Apply public licenses to files in ruby projects
Ruby
5
star
16

conan

Fast and lightweight framework to collect system metrics
Crystal
5
star
17

erl_csv_generator

Generate CSV files in Erlang
Erlang
4
star
18

mitm.cr

HTTP/S proxy server to intercept and inspect calls
Crystal
4
star
19

biocrystal

BioCrystal
Crystal
4
star
20

cafa5

Jupyter Notebook
4
star
21

erl-dbmodel

Erlang
3
star
22

d3-charts

Experiments on charts with D3
JavaScript
3
star
23

triangles

Counting triangles problem solved in May 2009
Java
2
star
24

dist

Generate packages to distribute Rails applications
Ruby
2
star
25

env_rails

Set Rails configuration parameters using environment variables
Ruby
2
star
26

pill-input

html based input with text and pills
JavaScript
2
star
27

ci-docker-builder

Scripts to facilitate building Docker images with right tags
Shell
1
star
28

rails-view_components

Simple library for building view components in Rails
Ruby
1
star
29

de-bee

De-Bee gives you a really simple way to deal with "I owe you"s and expense sharing for groups.
Python
1
star
30

knockout_forms-rails

Knockoutjs powered form builder for Rails
Ruby
1
star
31

rancher-zabbix-agent

Shell
1
star
32

stable-rails

Ruby
1
star
33

svg-input

SVG based input with pills support
JavaScript
1
star
34

cet-instagram

Utilitario para contactar inscriptas en Comunidad CET vΓ­a Instagram
Python
1
star
35

javadrone

AR.Drone Java API
Java
1
star
36

crystal-ml

A classic machine learning library for Crystal programming language
Crystal
1
star
37

crystal-circleci-orb

Common CircleCI tasks for the Crystal programming language
1
star