Browse files

Removing :ssl => false since Harvest released SSL to all accounts

  • Loading branch information...
1 parent 052ff34 commit 4f67622d1e1365baec5dbf5d28a6271b94addfc9 @zmoazeni zmoazeni committed Oct 14, 2010
Showing with 6 additions and 6 deletions.
  1. +2 −2 README.md
  2. +1 −1 examples/basics.rb
  3. +1 −1 examples/clear_account.rb
  4. +1 −1 examples/task_assignments.rb
  5. +1 −1 examples/user_assignments.rb
View
4 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
View
2 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:"
View
2 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)"
#
View
2 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
View
2 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

0 comments on commit 4f67622

Please sign in to comment.