Indico

Indico.io API wrapper in Elixir.

Installation

Just add indico to your list of dependencies in mix.exs:

def deps do
  [
    {:indico, "~> 0.1.1"}
  ]
end

and put your Indico.io API key in your configuration file like this:

config :indico, indico_io_api_key: System.get_env("INDICO_IO_API_KEY")

(assuming that environment variable is set).

Implemented functionality

Usage example

iex(1)> IndicoIo.sentiment "I feel good!"
{:ok, %{"results" => 0.9360338577753942}}
iex(2)> IndicoIo.sentiment "yikes!"
{:ok, %{"results" => 8.545276187403398e-4}}
iex(3)> IndicoIo.sentiment(["yes-yes-yes!", "no way!"])
{:ok, %{"results" => [0.9344446305911374, 0.005659668743777363]}}

Dependencies

Documentation

The docs are available at https://hexdocs.pm/indico.

License

The MIT License

Copyright (c) 2018 Ruslan Bredikhin