Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4f67622d1e1365baec5dbf5d28a6271b94addfc9 1 parent 052ff34
Zach Moazeni zmoazeni authored
4 README.md
View
@@ -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
2  examples/basics.rb
View
@@ -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:"
2  examples/clear_account.rb
View
@@ -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)"
#
2  examples/task_assignments.rb
View
@@ -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
2  examples/user_assignments.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.