Skip to content
No description, website, or topics provided.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
README.md
kele.gemspec

README.md

Kele

Kele is a Ruby Gem API client to access the Bloc API.

Bloc's API Documentation

Usage

The client can be used as follows, (Populated with your Bloc.io email and password to access the API.):

$ irb
>> require './lib/kele'
=> true
>> Kele.new("jane@gmail.com", "abc123")

To retrieve a parsed ruby hash of your Bloc.io account information then run:

$ kele_client.get_me

To retrieve your mentor's current availability:

$ kele_client.get_mentor_availability(mentor_id)

To retrieve your Bloc.io roadmap:

$ kele_client.get_roadmap(chain_id)

To retrieve information on a particular checkpoint:

$ kele_client.get_checkpoint(checkpoint_id)

To retreive your remaining checkpoints:

$ kele_client.get_remaining_checkpoints(chain_id)

To retrieve your messages:

$ kele_client.get_messages(1) # returns the first page of message threads
$ kele_client.get_messages # returns the first page of messages

To send a message:

$ kele.client.create_message(sender, recipient_id, token, subject, text)
You can’t perform that action at this time.