ovargas27 / offer_client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

This App is a basic client to consume the Fyber API

It covers the following:

  • Make the request to the API including auth hash

  • Confirm that the response is real

  • Parse API response and create Offer objects

As it display real time data from the API, the DB is not used, but it can be used to save offers localy and reduce the number of request

API KEY and other sensitive data are saved on env variables

ApiClient raise exception is somethig goes wrong or get a response different that ‘OK’ that way we don’t have to be checking returnig values. not the best approach for real product, but good enough for a first draft

About


Languages

Language:Ruby 81.1%Language:HTML 13.5%Language:CSS 3.3%Language:JavaScript 1.6%Language:CoffeeScript 0.5%