From ef8a51560a610a93f40b40c27d0e5659cb529b16 Mon Sep 17 00:00:00 2001 From: Cyril Mougel Date: Tue, 31 Jan 2012 12:16:18 +0100 Subject: [PATCH] It's user key use in auth params --- README.rdoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.rdoc b/README.rdoc index 46392ca..6abae06 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,4 +1,3 @@ - teambox-ruby is a Ruby wrapper for Teambox ( http://www.teambox.com ) API. * Wraps the API in a client object with resources @@ -15,12 +14,12 @@ First, install the teambox-client gem: Now, run "irb -rubygems" and this snippet to get the list of activities: require 'teambox-client' - client = Teambox::Client.new(:auth => {:username => 'frank', :password => 'papapa'}) + client = Teambox::Client.new(:auth => {:user => 'frank', :password => 'papapa'}) puts client.activities By default, teambox-client will connect to the hosted service at https://teambox.com/api/1; optionally you can: - client = Teambox::Client.new(:base_uri => 'http://teambox.mysite.com/api/1', :auth => {:username => 'frank', :password => 'papapa'}) + client = Teambox::Client.new(:base_uri => 'http://teambox.mysite.com/api/1', :auth => {:user => 'frank', :password => 'papapa'}) == Examples