September 26 2011

Introducing the RhoGallery API

Since we launched RhoGallery last year, one of the more tedious parts of the system was consumer and group management. That's why today we're excited to announce the RhoGallery API. Now your gallery consumers and groups can be managed through a simple REST API. We're also releasing a companion ruby client you can find on github.

Getting started with the RhoGallery API from ruby is simple:

$ gem install rhogallery

require 'rhogallery'

Next, find your RhoHub API token on your profile page:

Then, initialize the RhoGallery API with your username and token:

RhoGallery.credentials = {:username => 'lars', :token => '4133af952fe67aba3ec23f73264547398225bad22a23a0000d'}

That's it! Now you can create,read,update or delete RhoGallery consumers and groups:

RhoGallery::Consumer.find_all
    => [{"name":"John Doe","devices":["ios","android","blackberry"],"deactivated_id":null,
            "created_at"