diff --git a/README.md b/README.md index c4fa715..25a56d7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a Ruby wrapper for the [Harvest API](http://www.getharvest.com/). ## Examples - harvest = Harvest.client('yoursubdomain', 'yourusername', 'yourpassword', :ssl => false) # you can enable SSL if your account supports it + harvest = Harvest.client('yoursubdomain', 'yourusername', 'yourpassword') harvest.projects() # list out projects client = Harvest::Client.new(:name => "Billable Company LTD.") @@ -23,7 +23,7 @@ The guys at Harvest built a great API, but there are always dangers in writing c Using `Harvested#client` your code needs to handle all these situations. However you can also use `Harvested#hardy_client` which will retry errors and wait for Rate Limit resets. - harvest = Harvest.hardy_client('yoursubdomain', 'yourusername', 'yourpassword', :ssl => false) + harvest = Harvest.hardy_client('yoursubdomain', 'yourusername', 'yourpassword') harvest.projects() # This will wait for the Rate Limit reset if you have gone over your limit ## Links diff --git a/examples/basics.rb b/examples/basics.rb index 2853c6e..554bb98 100644 --- a/examples/basics.rb +++ b/examples/basics.rb @@ -4,7 +4,7 @@ username = 'yourusername' password = 'yourpassword' -harvest = Harvest.hardy_client(subdomain, username, password, :ssl => false) +harvest = Harvest.hardy_client(subdomain, username, password) # Print out all users, clients, and projects on the account puts "Users:" diff --git a/examples/clear_account.rb b/examples/clear_account.rb index 301b496..0aee145 100644 --- a/examples/clear_account.rb +++ b/examples/clear_account.rb @@ -6,7 +6,7 @@ # username = 'yourusername' # password = 'yourpassword' # -# api = Harvest.hardy_client(subdomain, username, password, :ssl => false) +# api = Harvest.hardy_client(subdomain, username, password) # # raise "Are you sure you want to do this? (comment out this exception if so)" # diff --git a/examples/task_assignments.rb b/examples/task_assignments.rb index 65ae655..c7c2975 100644 --- a/examples/task_assignments.rb +++ b/examples/task_assignments.rb @@ -4,7 +4,7 @@ username = 'yourusername' password = 'yourpassword' -harvest = Harvest.hardy_client(subdomain, username, password, :ssl => false) +harvest = Harvest.hardy_client(subdomain, username, password) # Create a Client add a Project to that Client diff --git a/examples/user_assignments.rb b/examples/user_assignments.rb index 090944e..08d1db0 100644 --- a/examples/user_assignments.rb +++ b/examples/user_assignments.rb @@ -4,7 +4,7 @@ username = 'userusername' password = 'yourpassword' -harvest = Harvest.hardy_client(subdomain, username, password, :ssl => false) +harvest = Harvest.hardy_client(subdomain, username, password) # Create a Client, Project, and a User then assign that User to that Project