Client library for the Visionect Server Management API
Add this line to your application's Gemfile:
gem 'visionect-ruby', git: 'https://github.com/joelhawksley/visionect-ruby.git'
First, initialize and configure the client:
client = Visionect::Client.new(
host: 'visionect.myhost.com',
port: (optional, defaults to 8081),
api_key: 'my_api_key',
api_secret: 'my_api_secret'
)
(or, set VISIONECT_HOST
, VISIONECT_PORT
(optional), VISIONECT_API_KEY
, and VISIONECT_API_SECRET
in your environment)
And then make a request:
client.update_backend(uuids: [abc123]...)
Returns an HTTP response object with a JSON payload.
Updates the provided device UUIDs with the given binary PNG image.
Bug reports and pull requests are welcome on GitHub at https://github.com/joelhawksley/visionect.