A simple Ruby client for the TheySay AffectR API
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENCE
README.md
affectr.rb
affectr_api_client.rb
texts.rb

README.md

affectr-ruby

A simple Ruby client for TheySay AffectR API.

Dependencies

The client has been tested on ruby 1.8.7. The following gems are used:

gem install rest-client
gem install json_pure
gem install parallel

Running Examples

First update your TheySay AffectR API credentials in the affectr_api_client.rb file:

$usr = ""
$pwd = ""

Then run the examples with

ruby affectr_api_client.rb

The API client submits the sample texts from the texts.rb file to TheySay AffectR API asynchronously and displays the results in the console.

Licence

Apache 2 Licence. Copyright 2013 TheySay Ltd.

For further details, see the LICENCE file.