Skip to content

Commit

Permalink
Merge pull request #3 from SumeruSoftware/user-hub-update
Browse files Browse the repository at this point in the history
Contact Update
  • Loading branch information
lachi87 authored Nov 21, 2019
2 parents 224d6df + 1a0e524 commit 9288682
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/hubspot/contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def create_or_update(email, properties = {})
from_result(response)
end

def update_contact(contact, properties = {})
request = JSON.parse(properties)
params = { id: contact, no_parse: true}
response = Hubspot::Connection.post_json(UPDATE_PATH, params: params, body: request)
end

def search(query, opts = {})
Hubspot::PagedCollection.new(opts) do |options, offset, limit|
response = Hubspot::Connection.get_json(
Expand Down

0 comments on commit 9288682

Please sign in to comment.