Kele is a Ruby Gem API client built to access the Bloc API. It handles the details of requests and responses allowing Bloc students easy access to their information from the command line.
The Kele client allows Bloc students to do the following:
- Initialize and authorize client using user log-in
- Retrieve personal user information
- Retrieve mentor schedule and availability
- Retrieve roadmaps and checkpoints
- Retrieve message threads, respond to message, and create new ones
- Submit assignments for grading
The main problem with this project was creating functionality for each of the user stories without the codebase becoming unnecessarily complicated or unwieldy.
This was easily achieved by separating out the checkpoint submissions, roadmap access, and messaging functionality into their own separate files, and requiring them individually in the main kele.rb file.
Once set up, the Kele client is fairly simple to use to retrieve student information from the command line and works as expected. All of the information can be called from the command line, and returned as a JSON blob.
This was one of my first experiences with an API, and manipulating information using cURL commands from the command line. It was very educational to learn how to translate information into readable JSON, and make calls to pull the desired data.
Click here to access the code repository on Github.