nydame / kele-client

A Ruby gem that facilitates access to the Bloc API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kele-client

A Ruby gem that facilitates access to the Bloc API

Description

This Ruby gem lets your Rails app use the Bloc API to fetch information about any enrolled student.

Requires the following gems:

  • HTTParty for making HTTP requests
  • OJ JSON parser
  • Sanitize for blocking unsafe text input
  • PP for formatting output

Installation

Simply run gem install kele-client.

Use

Import keke-client into your code.

Create a new client, e.g. kele = Kele.new("abcdef@abc.com")

Make calls with Bloc API methods, e.g. current_user = kele.get_me or mentor_time_slots = kele.get_mentor_availability(123)

For a complete list of Bloc API methods please see Bloc API documentation

About

A Ruby gem that facilitates access to the Bloc API

License:MIT License


Languages

Language:Ruby 100.0%