Gem rest-client

The gem rest-client is ideal when using the REST ClicRDV API.

require 'rubygems'
require 'rest_client'
require 'json'

baseUrl = '[email protected]/api/v1'

response = RestClient.get baseUrl+'/groups/:group_id/fiches.json'

result = JSON.parse(response)

puts result.inspect

Ruby + ActiveResource

ActiveResource allows automatic mapping from RESTful resources and exposes them in the form of models within a Ruby application.


class Calendar < ActiveResource::Base = ""
  self.user = "[email protected]"
  self.password = "test"

For more information, see the ActiveResource documentation: