Centro Ruby Client

The Centro Ruby Client is used to interact with the Centro API from Ruby.

For more about the Centro API see http://api-docs.centro.net.

Usage

Start by creating a connection to Centro with your credentials:

require 'centro-client'

centro = Centro::Client.new(:access_token => ACCESS_TOKEN)

Now you can make requests to the api.

Requests

What follows is an overview of commands you can run for the client.

For additional details about any of the commands, see the API docs.

Mock

For practice or testing you can also use a simulated Centro:

require 'centro-client'

centro = Centro::Client.new(:access_token => ACCESS_TOKEN, :mock => true)

After that commands should still behave the same, but they will only modify some local data instead of updating the state of things on Centro.