Module: Markety::Command::SyncLead
- Included in:
- Markety::Client
- Defined in:
- lib/markety/command/sync_lead.rb
Overview
SyncLead commands return Response::SyncResponse objects
Instance Method Summary collapse
-
#sync_lead(lead, sync_method) ⇒ Object
Create a new lead or update an existing lead in Marketo.
Instance Method Details
#sync_lead(lead, sync_method) ⇒ Object
Create a new lead or update an existing lead in Marketo.
-
lead
- the lead to create or sync -
sync_method
- a SyncMethod enum value
9 10 11 12 |
# File 'lib/markety/command/sync_lead.rb', line 9 def sync_lead(lead, sync_method) request_hash = create_sync_lead_request_hash(lead,sync_method) send_request(:sync_lead, request_hash) end |