Project

betaface

0.0
No commit activity in last 3 years
No release in over 3 years
A ruby Gem to easily use the betaface API without having to deal with all this XLM
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.3.0
 Project Readme

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.)