Project

rmb

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby client library for the Rich Media Backbone (RMB) API (http://rmb.io). Please send all feedback to backbone@dropio.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

(Note: This is very beta. The code is mostly functional. The docs are mostly not. The tests are somewhere in between. Have fun, be safe, and stay tuned.)

RMB API library for Ruby¶ ↑

Installation:

(sudo) gem install rmb

Documentation for this library is available here: backbonedocs.drop.io/Ruby-API-Client-Library

Before using the Rmb library, the application must set an API key. This key will be used for all requests to the server. To get an API key, go to backbone.drop.io. Then make sure you set the API key before you use the API:

Rmb::Config.api_key = "83a05513ddddb73e75c9d8146c115f7fd8e90de6"

You can also get debug information through STDERR by doing:

Rmb::Config.debug = true

The Drop object¶ ↑

There are two ways to get a Drop object. The first is to access an existing drop:

     drop = Rmb::Drop.find("mystuff")
auth_drop = Rmb::Drop.find("mystuff", "b9b2c8f2b8e655679d2fb62b83f8efec4fb4c8af")

Drop#find takes two arguments: the name of the drop to get, and a credential token. This can be an admin token, a user token, an admin password, or a guest password. The drop’s capabilities will be limited by the token, and the token is optional. If the drop is authenticated with the admin token, it will be able to do anything. If the drop is not authenticated with a token, it will have the same capabilities as any user visiting the drop. If the drop is not found or the token is not accepted, #find will return nil.