betaface
Betaface is the unofficial ruby Gem for the Betaface API. You can find all needed documentation about the official API at Betaface docs
Installation
To install using Bundler grab the latest stable version:
gem 'betaface'
To manually install betaface
via Rubygems simply gem install:
gem install betaface
Configuration
Put your own credentials here
require 'betaface'
Betaface.key = "d45fd466-51e2-4701-8da8-04351c872236"
Betaface.secret = "171e8465-f548-401d-b63b-caf0dc28df5f"
alternatively, you can preconfigure the client like so
require 'betaface'
api = Betaface::Api.new("d45fd466-51e2-4701-8da8-04351c872236","171e8465-f548-401d-b63b-caf0dc28df5f")
Upload a picture
api = Betaface::Api.new
api.upload_image("propoints,classifiers",{url:"http://img.wennermedia.com/480-width/1444256733_tom-cruise-zoom.jpg"})
Get image info
api = Betaface::Api.new
api.get_image_info("2bdcd1ad-47a6-45f8-ba74-86c765272422")
Supported Ruby Versions
This library supports and is test for the following Ruby implementations:
More Information
There are more detailed examples in the included examples
License
(The MIT License.)