module Infermedica

Infermedica: A ruby interface to the infermedica REST API

Quick Start

You will need a valid api_id and api_key. Get one from developer.infermedica.com/docs/api

To start using the API, require the infermedica gem and create an Infermedica::Api object, passing the api_id and api_key to the constructor

The constructor takes a hash as argument, so you have different options to pass the id and key:

require 'infermedica'
api = Infermedica::Api.new(api_id: 'xxxxx', api_key: 'xxxxxxxxxxx')

or put the key and id in a .yaml file, read it and pass the resulting hash

In config.yaml

:api: id:  xxxxx
:api_key: xxxxxxxxxxx

In your script

require 'infermedica'
require 'yaml'
access = YAML.load(File.read('./config.yaml'))
api = Infermedica::Api.new(access)