How to Use Claertrip API

Hi, I m new to ruby and rails , I want to develop an application to book
Flight ticket and Hotel Reservation Using cleartrip API.
I had read the API method but was not able to implement that.
I got API key, valid for 7 days.
I need sample application code or demo how and where to use that method
in my erb page.