/kele

Kele API Client provides easy access to and use of the student endpoints of Bloc's API

Primary LanguageRuby

Synopsis

Bloc's API provides an external facing JSON Web Token authorized gateway to the Bloc application. You can access it via cURL, but an API client can manage the low-level details of making requests and handling responses. Build the Kele API Client to provide easy access to and use of the student endpoints of Bloc's API.

Code Example

  /p/kele ❯❯❯ irb
  > require './lib/kele.rb'
  => true
  >> kele_client = Kele.new("jane@gmail.com", "abc123")
  >> kele_client.get_me
  >> mentor_id = 99
  >> kele_client.get_mentor_availability(mentor_id)
  >> roadmap_id = 99
  >> kele_client.get_roadmap(roadmap_id)
  >> checkpoint_id = 99
  >> kele_client.get_checkpoint(checkpoint_id)
  >> kele_client.get_messages(1)

API Reference

Bloc's base API URL: https://www.bloc.io/api/v1 API documentation: http://docs.blocapi.apiary.io/