Skip to content

Commit

Permalink
Updating readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Stephenson committed Mar 18, 2011
1 parent 5018cb8 commit 6d220c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ RHapi is a Ruby wrapper for the HubSpot API (HAPI).

== Using RHapi

First configure RHapi to work with your Hubspot API Key
First configure RHapi to work with your Hubspot API Key.

RHapi.configure do |config|
config.api_key = "YOUR_API_KEY"
end

Then to get a list of leads:
Then to get a list of leads.
leads = RHapi::Lead.find
leads.each do |lead|
puts lead.first_name
Expand All @@ -25,10 +25,10 @@ Then to get a list of leads:
puts lead.guid
end

To find leads named Barny
To find leads named Barny.
leads = RHapi::Lead.find("Barny")

To update a lead
To update a lead.
lead = leads.fist
lead.first_name = "Fred"
lead.last_name = "Flintsone"
Expand Down

0 comments on commit 6d220c1

Please sign in to comment.